html,
body {
    font-family: 'Montserrat', sans-serif;
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#unity-container {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    overflow: hidden;
    background-color: #131317;
}

#unity-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: url('PrealphaInitBg_Blur35.jpg') center center / cover no-repeat; */
    filter: brightness(60%) blur(20px);
    z-index: -1;
}

#unity-container.unity-mobile {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #131317;
}

#unity-container.unity-mobile::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* background: url('PrealphaInitBg_Blur35.jpg') center center / cover no-repeat; */
    filter: brightness(60%) blur(20px);
    z-index: -1;
}

#unity-canvas {
    position: absolute;
    width: 1920px;
    height: 1080px;
    background: #131317;
    top: 0;
    left: 0;
    z-index: 0;
}

/* #unity-canvas {
    width: 100%;
    height: 100%;
    background: #131317
} */

/* body {
    padding: 0;
    margin: 0;
    overflow: hidden
}

#unity-container {
    position: absolute;
    overflow: hidden
}

#unity-container.unity-desktop {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    overflow: hidden
}

#unity-container.unity-mobile {
    position: fixed;
    width: 100%;
    height: 100%
}

#unity-canvas {
    background: #131317
} */

.unity-mobile #unity-canvas {
    width: 100%;
    height: 100%
}

#gateway-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    /* 垂直居中 */
    justify-content: center;
    /* 水平居中 */
    z-index: 10;
    /* 保证在 canvas 之上 */
    /* background: rgba(255,255,255,0.85); 可选：淡白遮罩 */
}

#unity-loading-bar.gateway {
    display: none;
}

#gateway-card {
    max-width: 40%;
    min-width: 20%;
    max-height: 70vh;
    overflow: hidden;
    margin: 0 auto;
    padding: 24px 28px;
    border: 1px solid #000;
    border-radius: 12px;
    background: #fff;
    color: #000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
    font-family: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.gateway-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 10px;
    letter-spacing: .3px;
    display: flex;
    justify-content: center;
    /* align-items: center; */
}

.gateway-sub {
    font-size: 12px;
    opacity: .7;
    margin-bottom: 14px;
    display: flex;
    justify-content: center;
    /* align-items: center; */
}

.gateway-msg {
    font-weight: 500;
    font-size: 16px;
    margin: 6px 0 18px;
    white-space: pre-wrap;
    word-break: break-word;

    flex: 1 1 auto;
    overflow-y: auto;
    padding-right: 6px;
    -webkit-overflow-scrolling: touch;
}

.gateway-actions {
    flex: 0 0 auto;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.gateway-btn {
    appearance: none;
    border: 1px solid #000;
    background: #000;
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    justify-content: center;
}

.gateway-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

#unity-loading-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none;
    z-index: 1;
}

#unity-logo {
    width: 50vw;
    aspect-ratio: 900 / 200;
    background: url('aivilization-logo-new-dark.svg') no-repeat center;
    background-size: contain;
    margin: 0 auto;
    filter: drop-shadow(0 12px 5px rgba(255, 255, 255, 0.5));
    image-rendering: pixelated;
}

/* #unity-logo {
    width: 900px;
    height: 200px;
    background: url('bio3-logo-dark.png') no-repeat center;
    background-size: contain
} */

#unity-progress-bar-empty {
    position: relative;
    display: flex;
    width: 300px;
    height: 10px;
    margin: 10px auto 10px auto;
    box-sizing: border-box;

    border: 1px solid transparent;
    border-image-source: url('progress-bar-empty-dark.png');
    border-image-slice: 2 fill;
    border-image-repeat: stretch;
    /* background: url('progress-bar-empty-dark.png') no-repeat center; */
}

#unity-progress-bar-full {
    position: absolute;
    width: 0%;
    height: 10px;
    transform: translateY(-50%);
    left: 0;
    top: 50%;
    background: url('progress-bar-full-dark.png') no-repeat center;
    background-size: 100% 100%;
}

#unity-loading-text {
    margin-top: 20px;
    font-size: 12px;
    color: #ffffff;
    text-align: center;
    position: relative;
    letter-spacing: 0.2em;
}

#unity-footer {
    position: relative
}

.unity-mobile #unity-footer {
    display: none
}

#unity-logo-title-footer {
    float: left;
    width: 102px;
    height: 38px;
    background: url('unity-logo-title-footer.png') no-repeat center
}

#unity-build-title {
    float: right;
    margin-right: 10px;
    line-height: 38px;
    font-family: arial;
    font-size: 18px
}

#unity-fullscreen-button {
    cursor: pointer;
    float: right;
    width: 38px;
    height: 38px;
    background: url('fullscreen-button.png') no-repeat center
}

#unity-warning {
    position: absolute;
    left: 50%;
    top: 5%;
    transform: translate(-50%);
    background: white;
    padding: 10px;
    display: none
}
