* {
    -webkit-tap-highlight-color: transparent;
}

#app-container {
    /* width: var(--base-width);
    height: var(--base-height); */

    width: var(--base-width);
    height: var(--base-height);
    
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center center; /* 중앙을 기준으로 스케일링 */
    transform: translate(-50%, -50%) scale(1); /* 초기 위치 */
    
    background-color: #111318; /* 실제 게임/앱 배경 */
    overflow: hidden;
}

body {
    overflow: hidden;
    background-color: #111318;
}

.ui-debug-button {
    width: 200px;
    height: 100px;
    font-size: 30px;
}

#webgl-container {
    overflow: hidden;
}

#ui-div {
    position: absolute;
    top: 0px;
    left: 0px;
    width: var(--base-width);
    height: var(--base-height);
}

.ui-pop-class {
    cursor: pointer;
    position: absolute;
    top: 0px;
    left: 0px;
    width: var(--base-width);
    height: var(--base-height);
    z-index: 1000;
}
.ui-pop-class.disabled {
    pointer-events: none;
}

.ui-sub-class {
    cursor: pointer;
    position: absolute;
    top: 0px;
    left: 0px;
    width: var(--base-width);
    height: var(--base-height);
    z-index: 500;
    /* background-color: yellow; */
}
.ui-sub-class.disabled {
    pointer-events: none;
    /* background-color: blue; */
    /* z-index: -10; */
}

#ui-div button, #ui-div input {
    pointer-events: auto;
}

#ui-buttons {
    display: flex;
    flex-direction: column;
    position: absolute;
    background-color: black;
    top: 0;
    left: 0;
    gap: 5px;
    padding: 5px;
}

#screen-size {
    position: absolute;
    top: 50%;
    left: 50%;
    color: yellow;
}

/*공통!*/
/* 하단 "다른 게임하러 가기" 버튼 */
.common-footer-button {
    position: absolute;
    left: 80px;
    right: 80px;
    bottom: 80px;
    height: 110px;
    border: none;
    border-radius: 24px;
    background: #ff9d00;
    color: #0b1426;
    font-size: 38px;
    font-weight: 900;
    cursor: pointer;
    display: none;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}
.common-footer-button:active {
    transform: scale(0.98);
}

/* 공통 버튼 */
.common-confirm-button {
    width: 90%;
    height: 120px;
    background: #3f7ef7;
    color: #fff;
    /* border-radius: 60px; */
    font-size: 40px;
    font-weight: bold;
    border: none;
}

.common-confirm-border-button {
    width: 96%;
    height: 120px;
    background: #3f7ef7;
    color: #fff;
    border-radius: 60px;
    font-size: 40px;
    font-weight: bold;
    border: none;
    justify-content: center;
    align-items: center;
}

.common-user-avatar {
    grid-row: 1 / 3;
    width: 96px;
    height: 96px;
    border-radius: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 36px;
    color: #fff;
    margin: 0;
    background-color: #3f7ef7;
}

.common-user-avatar-small {
    grid-row: 1 / 3;
    width: 68px;
    height: 68px;
    border-radius: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFF;
    /* Body1/Bold */
    font-family: Pretendard;
    font-size: 2rem;
    font-style: normal;
    font-weight: 600;
    line-height: 2.25rem; /* 112.5% */
    margin: 0;
    background-color: #3f7ef7;
}

/*게임 상단 타임바 공통*/
.common-game-header-ui {

    position: absolute;
    left: 50%;
    transform: translateX(-50%);

    min-width: 716px;
    height: 86px;
    margin-top: 100px;
    padding-left: 35px;
    padding-right: 20px;
    background: #23272a;
    border-radius: 120px;
    display: inline-flex;
    /* justify-content: center; */
    align-items: center;
    gap: 20px;
}

.common-game-timer-icon {
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    background: url("assets/images/game_taptap/icon_stopwatch.png") center / 46px 46px no-repeat;
}

.common-game-timer-bar {
    width: 520px;
    height: 20px;
    position: relative;
    overflow: hidden;
    border-radius: 640px;
    background: #3a3f42;
}

.common-game-timer-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border-radius: 640px;
    background: #52fe90;
    transition: width 0.1s linear;
}

.common-game-timer-text {
    min-width: 88px;
    color: #fff;
    font-size: 32px;
    font-weight: 600;
    line-height: 36px;
    text-align: right;
}