
* {
    margin: 0;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
    -webkit-focus-ring-color: rgba(0,0,0,0);
    outline: none !important;
}

*:focus, *:active, *:hover {
    outline: none !important;
    -webkit-tap-highlight-color: rgba(0,0,0,0);
} 

html, body, div, canvas, img {
    box-sizing: border-box;
    padding: 0;
}

/* ── Login Screen (design-space: 1920x1080, scaled with JS) ── */
#login-screen {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 10;
    overflow: hidden;
    background: #000;
}
/* Telegram Mini App portrait mode: kb-front's login screen flashes
   between iframe.onLoad and the room scene mounting. The Mini App's
   <GameFrame /> already shows its own Kargin Blot splash on top of
   the iframe during this window, so we hide the legacy login design
   entirely. The auto-login JS still runs against these (now invisible)
   DOM nodes. The body.tg-portrait class is added in src/config/layout.js. */
body.tg-portrait #login-screen,
body.tg-portrait #login-screen::before,
body.tg-portrait .login-bottom-group,
body.tg-portrait .game-bg {
    display: none !important;
}

/* Telegram Mini App safe areas. Telegram exposes the chrome insets
   (close-button row at top, system status bar) via CSS custom
   properties on the WebApp root; iOS exposes physical insets via
   env(safe-area-inset-*). We pad the body with the larger of the
   two so the PixiJS canvas (which fills `body` via #root) starts
   below the chrome and ends above the home indicator. The
   _updateSize hook in reactive-pixi/Game.js subtracts the same
   padding from the canvas height so the game doesn't overflow. */
body.tg-portrait {
    box-sizing: border-box;
    padding-top: max(env(safe-area-inset-top, 0px), var(--tg-content-safe-area-inset-top, 0px), var(--tg-safe-area-inset-top, 0px));
    padding-bottom: max(env(safe-area-inset-bottom, 0px), var(--tg-content-safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
}
/* Zoomed background matches native splash end state (1.15x) for seamless crossfade.
   Uses ::before so transform doesn't affect button/progress positioning. */
#login-screen::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('../assets/login/login.jpg') center / cover no-repeat;
    transform: scale(1.15);
    transform-origin: center center;
    z-index: -1;
}
/* Design-space container — JS sets transform: scale() + position */
.login-design {
    position: absolute;
    z-index: 1;
    width: 1920px;
    height: 1080px;
    transform-origin: 0 0;
    pointer-events: none;
}
/* ── Game Background (HTML, not PixiJS) ── */
.game-bg {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: 0;
    overflow: hidden;
}
.game-bg-logo, .game-bg-kargin {
    display: none;
}

/* Bottom-anchored group: positioned in viewport, not design-space. Hidden until we know if auto-login applies. */
.login-bottom-group {
    position: absolute;
    bottom: 5vh;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}
/* Buttons container: centered above progress bar */
.login-buttons-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    margin-bottom: 40px;
}
.login-buttons-bg {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(85, 85, 85, 0.5);
    border-radius: 10px;
    pointer-events: none;
    z-index: -1;
    /* width/height set by JS based on button count */
}
.login-buttons-row {
    position: relative;
    display: flex;
    z-index: 1;
    justify-content: center;
}
/* bg is now anchored inside the row, not the full area */
.login-btn {
    width: 84px; height: 84px;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    /* Centered in 140px cell */
    margin: 0 28px;
}
.login-btn img { width: 100%; height: 100%; }
.login-btn:active { opacity: 0.6; }
.login-guest {
    margin-top: 24px;
    cursor: pointer;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}
.login-guest-text {
    color: #fff;
    font-size: 34px;
    font-family: SFUIText-Regular, sans-serif;
    text-decoration: underline;
}

/* Progress bar: always at bottom of group */
.login-progress-area {
    display: none;
    position: relative;
    width: 804px;
}
.login-bar-bg {
    display: block;
    width: 804px; height: 16px;
}
.login-bar-fill-wrap {
    position: absolute;
    top: 0; left: 0;
    width: 0px; height: 16px;
    overflow: hidden;
    transition: width 0.3s ease;
}
.login-bar-fill {
    display: block;
    width: 800px; height: 12px;
    margin-top: 2px;
    margin-left: 2px;
}
.login-progress-text {
    display: block;
    text-align: center;
    color: #fff;
    font-size: 30px;
    font-family: SFUIText-Regular, sans-serif;
    margin-top: 12px;
}

html, body, #root {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: fixed; 
}

p {
    white-space: pre;
    text-align: center;
    pointer-events: none;
}

#root {
    position: relative;
    overflow: visible;
    z-index: 0;
    visibility: hidden;
}

.reactWrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    visibility: hidden;
    overflow: visible;
}

.gameOverlayRoot {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
}

.gameOverlayRoot > * {
    pointer-events: auto;
}

canvas {
    position: fixed;
    z-index: 0;
}

.loader-container {
    position: absolute;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    top: 30%;
    left: 30%;
    width: 40%;
    height: 40%;
    pointer-events: none;
    z-index: 2;
}

.alertBg {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    visibility: hidden;
}

.darkBg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: black;
    opacity: 0.5;
    visibility: hidden;
}

.alertContent {
    display: flex;
    flex: 1;
    align-items: center;
    flex-direction: column;
    max-width: 50%;
    height: 50%;
    background-color: white;
    border-radius: 3vw;
    border: 0.5px solid grey;
}

.alertHeaders {
    display: flex;
    flex: 0.7;
    flex-direction: column;
    align-items: center;
}

.alertTitle {
    display: flex;
    flex: 0.5;
    color: black;
    font-size: 3vw;
    font-weight: bold;
    align-items: center;
    flex-wrap: wrap;
    padding: 0 5%;
}

.alertMessage {
    display: flex;
    flex: 0.5;
    color: black;
    font-size: 2.5vw;
    flex-wrap: wrap;
    padding: 0 5%;
}

.alertButtons {
    flex: 0.3;
    width: 100%;
    flex-direction: row;
    display: flex;
}

.alertButton {
    display: flex;
    flex: 0.5;
    justify-content: center;
    align-items: center;
    border: 0.5px solid grey;
}

.alertSingleButton {
    border: 0.5px solid grey;
    justify-content: center;
    align-items: center;
    display: flex;
    flex: 1;
}

.alertCancel {
    color: blue;
    font-weight: bold;
    font-size: 2.5vw;
}

.alertOK {
    color: blue;
    font-size: 2.5vw;
}

#loader-progress {
    width: 32%;
    height: auto;
    transform-origin: 50% 50%;
    top: 50%;
    left: 50%;
    animation-name: round;
    animation-duration: 1s;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

#singleOkButton, #okButton, #cancelButton {
    cursor: pointer;
}

#singleOkButton:active, #okButton:active, #cancelButton:active {
    background-color: #dddddd;
}

#loader-logo {
    width: 25%;
    height: auto;
}

@keyframes round {
    from {transform: rotate(0deg);}
    to {transform: rotate(360deg);}
}

@font-face {
    font-family: "SFUIText-Regular";
    src: url('../fonts/SFUIText-Regular.woff2') format('woff2'),
    url('../fonts/SFUIText-Regular.woff') format('woff'),
    url('../fonts/SFUIText-Regular.ttf')  format('truetype'),
    url('../fonts/SFUIText-Regular.otf');
}
@font-face {
    font-family: "SFUIText-Bold";
    src: url('../fonts/SFUIText-Bold.woff2') format('woff2'),
    url('../fonts/SFUIText-Bold.woff') format('woff'),
    url('../fonts/SFUIText-Bold.ttf')  format('truetype'),
    url('../fonts/SFUIText-Bold.otf');
}
@font-face {
    font-family: "NotoSansArmenian-Regular";
    src: url('../fonts/NotoSansArmenian-Regular.ttf') format('truetype'),
    url('../fonts/NotoSansArmenian-Regular.woff') format('woff'),
    url('../fonts/NotoSansArmenian-Regular.woff2') format('woff2');
}
@font-face {
    font-family: "NotoSansArmenian-Bold";
    src: url('../fonts/NotoSansArmenian-Bold.woff2') format('woff2');
    font-weight: bold;
}

.wifiSignStyle{
    position: absolute;
    height: auto;
    top: 2.5%;
    right: 11%;
    width: 5%;
}

.wifiSignStyleRoom{
    position: absolute;
    height: auto;
    top: 5%;
    right: 5%;
    width: 5%;
}

#wifiSign{
    height: auto;
    width: 100%;
    filter: invert(60%) sepia(60%) saturate(6878%) hue-rotate(0deg) brightness(109%) contrast(107%);
    -webkit-filter: invert(60%) sepia(60%) saturate(6878%) hue-rotate(0deg) brightness(109%) contrast(107%);
}

.infoText{
    color: red;
    font-weight: bold;
    font-size: 14px;
}

#wifiBlinker {
    display: none;
    z-index: 999;  /* Always on top — above PixiJS canvas overlays and React wrapper */
}

span {
    text-align: center;
}

#okWidgetsWrapper {
    position: absolute;
    bottom: -90px;
    right: 50%;
    visibility: hidden;
    display: flex;
    flex-direction: column;
    transform: translate(260px, 0);
    width: 500px;
    justify-content: center;
    align-items: center;
}

#okWidgets {
    display: flex;
    flex-direction: row;
}

#ok_shareWidget {
    margin-left: 10px;
}

#joinGroupWidget {
    margin-right: 10px;
    width: 182px;
    height: 32px;
    background-color: #ED8207;
    border: 1px solid white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

#groupWidgetText {
    color: white;
    font-size: 15px;
}

#okBonusText{
    color: white;
    width: 100%;
    font-size: 16px;
    margin-bottom: 10px;
}

#blocked-user {
    top: 0;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    left: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.block-text {
    color: red;
    font-size: 8vh;
    font-weight: bold;
}

#block-id {
    color: white;
}

#block-support-text {
    color: white;
    font-size: 5vh;
    font-weight: bold;
    margin-top: 20px;
    margin-bottom: 20px;
}

.support-image {
    cursor: pointer;
    padding: 5px 20px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-top: 10px;
    display: flex;
}

/* Circular percentage loader removed — replaced by .loader-container spinner for consistency */

.newsCont {
    background: #000000bf;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    display: none;
    justify-content: center;
    align-items: center;
}

.newsContent {
    background: transparent;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.newsContentFull {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.newsImg {
    height: 80%;
    width: auto;
}

.newsImgfull {
    height: 100%;
    width: 100%;
}

.newsBtnsCont {
    height: 15%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

.newBtnsContfull {
    align-items: flex-end;
    justify-content: center;
    position: absolute;
    bottom: 0%;
}

.newsBtn {
    color: white;
    text-align: center;
    font-family: Arial, Helvetica, sans-serif;
    border: none;
    width: 15%;
    height: 80%;
    border-radius: 4%;
    outline: none;
    background-color: rgb(91, 12, 144);
    border: 1px solid #021836;
    cursor: pointer;
    margin: 0 2%;
}

.newsBtn span {
    /* font-size: 70%; */
    font-size: 2.5vh;

    font-weight: bold;
    display: flex;
    width: 100%;
    text-align: center;
    justify-content: center;
}

#fbBtn {
    z-index: 20;
    position: absolute;
    width: auto;
    height: auto;
    display: none;
    bottom: 25%;
    left: 8%;
}

.x {
    position: absolute;
    background-color: black;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
    top: 0;
    right: 0;
    display: flex;
    color: white;
    align-items: center;
    justify-content: center;
}

.x span {
    font-family: sans-serif;
    font-size: 25px;
    font-weight: bold;
}

.soundIconCont {
    position: absolute;
    background-color: black;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
    top: 0;
    left: 0;
}
.sound {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    color: white;
    align-items: center;
    justify-content: space-evenly;
}

.sound:first-child {
    font-family: sans-serif;
    font-size: 25px;
    font-weight: bold;
}

.sound span {
    font-family: sans-serif;
    font-size: 18px;
    font-weight: bold;
    display: flex;
}

video::-webkit-media-controls {
    display:none !important;
    -webkit-appearance: none;
}

*::-webkit-media-controls-panel {
    display: none!important;
    -webkit-appearance: none;
}

*::--webkit-media-controls-play-button {
    display: none!important;
    -webkit-appearance: none;
}

*::-webkit-media-controls-start-playback-button {
    display: none!important;
    -webkit-appearance: none;
}

video::-webkit-media-controls-panel,
video::-webkit-media-controls-panel-container,
video::-webkit-media-controls-start-playback-button {
    display:none !important;
    -webkit-appearance: none;
}

.room-carousel::-webkit-scrollbar,
.market-carousel::-webkit-scrollbar {
    display: none;
}

.swiper {
    position: absolute;
    top: 0%;
    width: 100%;
    height: 45%;
    margin-top: 10%;
    overflow: visible !important;
}

.swiper-wrapper {
    display: flex;
    height: 100%;
}

.swiper-slide {
    flex-shrink: 0;
    text-align: center;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide-active {
    z-index: 2;
}

.marketSlide {
    -webkit-animation: none !important;
    -moz-animation: none !important;
    -o-animation: none !important;
    -ms-animation: none !important;
    animation: none !important;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes wheelWinBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

@keyframes roomCardScale {
    from {
        transform: scale(0.9);
        opacity: 0.3;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.scroll-container-status-tab {
    width: 1776px; 
    height: 600px; 
    left: -888px; 
    top: -159px; 
    position: absolute;
}

.scroll-container-position-tab {
    width: 1776px; 
    height: 600px; 
    left: -888px; 
    top: -265px; 
    position: absolute;
}

.scroll-container-profile-statistics-tab {
    width: 1360px; 
    height: 817px; 
    left: -454px; 
    top: -294px; 
    position: absolute;
}

.scroll-container-profile-cards-tab {
    width: 1360px; 
    height: 915px; 
    left: -454px; 
    top: -390px; 
    position: absolute;
}

.scroll-container-profile-friends-tab {
    width: 1260px; 
    height: 777px; 
    left: -454px; 
    top: -255px; 
    position: absolute;
}

.scroll-container-leaderboard  {
    width: 1055px;
    height: 481px;
    left: -440px;
    top: -143px;
    position: absolute;
}

