* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --vw: 100vw;
    --vh: 100vh;
}

html,
body {
    width: 100%;
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
    background: #000;
    overflow: hidden;
    /* padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); */
}

#video-container {
    position: absolute;
    inset: 0;
    display: none;
    background: #000;
    z-index: 3;
}

#video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
}

#skip-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 8px 14px;
    border: none;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    z-index: 999;
    -webkit-transform: translateZ(100px);
    transform: translateZ(100px);
    will-change: transform;
}

#skip-btn5-3 {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 8px 14px;
    border: none;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    z-index: 999;
    -webkit-transform: translateZ(100px);
    transform: translateZ(100px);
    will-change: transform;
}

#video-container2 {
    position: absolute;
    inset: 0;
    display: none;
    background: #000;
    z-index: 4;
}

#video-container2 video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
}

#skip-btn2 {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 8px 14px;
    border: none;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    z-index: 999;
    -webkit-transform: translateZ(100px);
    transform: translateZ(100px);
    will-change: transform;
}

#video-container3 {
    position: absolute;
    inset: 0;
    display: none;
    background: #000;
    z-index: 6;
}

#video-container3 video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
}

#skip-btn3 {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 8px 14px;
    border: none;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    z-index: 999;
    -webkit-transform: translateZ(100px);
    transform: translateZ(100px);
    will-change: transform;
    cursor: pointer;
}

#video-container4,
#video-container5,
#video-container5-3,
#video-container6 {
    position: absolute;
    inset: 0;
    display: none;
    background: #000;
    z-index: 6;
}

.page1-logo{
    width: 20%;
    position: absolute;
    bottom: 10%;
    left: 5%;
}

#video-container4 video,
#video-container5 video,
#video-container5-3 video,
#video-container6 video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
}

#skip-btn4,
#skip-btn5 {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 8px 14px;
    border: none;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    z-index: 999;
    -webkit-transform: translateZ(100px);
    transform: translateZ(100px);
    will-change: transform;
    cursor: pointer;
}

.page2 {
    position: absolute;
    inset: 0;
    display: none;
    background: #000;
    z-index: 7;
    overflow: hidden;
}

.page2-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page2-options {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
}

.page2-option {
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.page2-option:nth-child(2) {
    margin-left: 80px; /* 第二个选项缩进错位效果 */
}

.page2-option.disabled {
    cursor: not-allowed;
    /* filter: grayscale(100%); */
    opacity: 0.7;
}

.page2-option.hidden {
    display: none;
}

.page2-option .option-continue {
    width: 48%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.page2-options .page2-option:nth-child(3) {
    margin-top: 40px;
}

/* BGM 控制按钮样式 */
.bgm-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 100;
    padding: 5px;
}

.bgm-btn img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.bgm-btn.playing img {
    animation: bgm-rotate 3s linear infinite;
}

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

/* page2 触发区域样式 */
.page2-trigger {
    position: absolute;
    width: 78%;
    height: 35%;
    /* background: red; */
    opacity: 0.8;
    cursor: pointer;
    z-index: 10;
}

.page2-trigger.top-left {
    bottom: 0;
    left: 0;
}

.page2-trigger.top-right {
    top: 0;
    right: 0;
}

.page2-trigger.bottom-left {
    bottom: 0;
    left: 0;
}

.page2-trigger.bottom-right {
    top: 1%;
    right: 0%;
}

/* page4 样式 */
.page4 {
    position: relative;
    width: 100%;
    height: 100%;
    display: none;
    overflow: hidden;
}

.page4-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.page4-content {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 1;
}

.page4-left {
    width: 16%;
    height: auto;
    object-fit: contain;
    position: absolute;
    left: 5%;
}

.scratch-container {
    position: relative;
    width: 30%;
    max-width: 400px; /* 限制最大宽度 */
    /* 使用flex布局确保子元素对齐 */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5%;
    will-change: transform; /* 开启硬件加速优化 */
    transform: translateZ(0);
}

.scratch-base {
    width: 100%;
    height: auto;
    max-width: 400px; /* 限制最大宽度 */
    max-height: 400px; /* 限制最大高度 */
    object-fit: contain;
    position: relative;
    /* 确保作为定位基准 */
    display: block;
}

/* 许桂荣图片专用样式 - 用户可以在这里单独调整许桂荣图片的尺寸 */
.scratch-base-xuguiying {
    width: 100%;
    max-width: 130px;
    max-height: 400px;
}

.scratch-mask {
    width: 100%;
    height: auto;
    object-fit: contain;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: none !important; /* 隐藏图片元素，只在canvas中绘制 */
}

.scratch-canvas {
    position: absolute;
    top: 50%; /* 相对于父容器垂直居中 */
    left: 50%; /* 相对于父容器水平居中 */
    transform: translate(-50%, -50%); /* 调整位置使其真正居中 */
    width: auto; /* 使用canvas元素的实际宽度 */
    height: auto; /* 使用canvas元素的实际高度 */
    z-index: 3;
    cursor: pointer;
}

.page4-continue-btn {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.page4-continue-btn img {
    width: 40%;
    object-fit: contain;
}

/* 刮刮乐切换菜单 */
.scratch-tabs {
    position: absolute;
    top: 4%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 10;
}

.scratch-tab {
    width: 250px;
    height: auto;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.scratch-tab.active {
    opacity: 1;
}

.scratch-tab:hover {
    opacity: 0.8;
}

/* 刮刮乐主操作区域（Flex布局确保适配） */
.scratch-main-area {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    height: 100%;
    margin: 0 auto;
    gap: 30px; /* 按钮与容器之间的固定间距 */
}

/* 刮刮乐左右切换按钮 */
.scratch-nav {
    width: 50px;
    height: 50px;
    background: #ffad00; /* 修改为指定颜色 */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    user-select: none;
    flex-shrink: 0; /* 防止按钮被压缩 */
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    /* 解决内部符号偏下的问题：行高设为1并添加补偿 */
    /* line-height: 1; */
    /* padding-bottom: 4px; */
    margin-top: 9%;
}

/* .scratch-nav:hover {
    background: #ffc14d;
    transform: scale(1.1);
}

.scratch-nav:active {
    transform: scale(0.9);
} */

/* 移除旧的绝对定位属性 */
.scratch-nav-prev, .scratch-nav-next {
    position: static;
    transform: none;
}

/* 刮刮乐容器切换 */
.scratch-container {
    display: none;
    position: relative;
    /* width: auto;
    max-width: 400px; 
    justify-content: center;
    align-items: center;
    will-change: transform;
    transform: translateZ(0); */
}

.scratch-container.active {
    display: flex !important;
}

/* 全屏视频弹窗 */
.fullscreen-video-modal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    display: none;
}

.fullscreen-video-modal.active {
    display: flex;
}

.fullscreen-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
}

.fullscreen-video-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 30px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    transition: background 0.3s ease;
    /* iOS 兼容性修复：强制提升到更高深度层级，避免被视频硬件层覆盖 */
    -webkit-transform: translateZ(100px);
    transform: translateZ(100px);
    will-change: transform;
}

.fullscreen-video-close:hover {
    background: rgba(255, 255, 255, 1);
}

.option-left {
    width: 70px;
    height: auto;
    flex-shrink: 0;
}

.haibao_icon{
    width: 12% !important;
    position: absolute;
    left: -5%;
    top: 19%;
    /* z-index: 999; */
}

.option-arrow {
    width: 60px;
    height: auto;
    animation: arrow-move 1.5s ease-in-out infinite;
}

.page2-option.disabled .option-arrow {
    animation: none;
}

.page3 {
    position: absolute;
    inset: 0;
    display: none;
    background: #000;
    z-index: 8;
    overflow: hidden;
}

.page3 .page2-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page3-options {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    gap: 40px;
    padding: 40px;
}

.page3-option {
    display: flex;
    align-items: center;
    gap: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
    height: 80%;
    max-width: 400px;
}

.page3-option:active {
    transform: scale(0.98);
}

.page3-option .option-left,
.page3-option .option-right {
    height: 290px;
    object-fit: contain;
}

.page3-option .option-left {
    width: 120px;
    flex-shrink: 0;
}

.page3-option .option-right {
    flex: 1;
    width: auto;
    /* margin-right: 38%; */
}

/* 语言切换按钮样式 */
.lang-switch-container {
    position: absolute;
    bottom: 5%;
    right: 5%;
    z-index: 10;
}

.lang-switch-btn {
    width: 60px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.lang-switch-btn:active {
    transform: scale(0.95);
}

.page3-video-modal {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.page3-video-modal.active {
    display: flex;
}

.page3-video-content {
    width: 65%;
    max-width: 600px;
    /* background: #000; */
    border-radius: 12px;
    padding: 20px;
    /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#page3-video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.page3-video-close {
     /* position: absolute; */
    /* top: -40px; */
    /* right: 0; */
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 101;
    margin-top: 10px;
}

.option-text {
    width: 150px;
    height: auto;
}

@keyframes arrow-move {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
}

.page3 {
    position: absolute;
    inset: 0;
    display: none;
    background: #000;
    z-index: 8;
    overflow: hidden;
}

#map-container {
    position: absolute;
    inset: 0;
    display: none;
    background: #000;
    z-index: 3;
    overflow: hidden;
}

.page1 {
    position: absolute;
    inset: 0;
    display: none;
    background: #000;
    z-index: 5;
    overflow: hidden;
}

.page1-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page1-characters {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 40px;
}

.page1-characters .character-row {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

.page1-characters .character-row:nth-child(2) {
    margin-left: 80px;
    /* 第二行缩进错位效果 */
}

.character-card {
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    width: 35%;
    max-width: 35%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.character-card:active {
    transform: scale(0.95);
}

.character-card img {
    width: 100%;
    height: auto;
    display: block;
}

.page1-continue-btn {
    bottom: 30px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease;
}

.page1-continue-btn img {
    max-width: 100px;
    height: auto;
    display: block;
    margin-left: 85%;
    z-index: 99;
    position: relative;
}


.video-modal {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.poster-modal {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.audio-modal {
    position: absolute;
    inset: 0;
    display: none;
    background: rgba(0, 0, 0, 0.85);
    z-index: 500;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.poster-modal.active {
    display: flex;
}

.audio-modal.active {
    display: flex;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    /* background: #000; */
    border-radius: 12px;
    padding: 20px;
    /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); */
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
}

.poster-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    /* background: #000; */
    border-radius: 12px;
    padding: 20px;
    /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); */
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
}

.audio-modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    height: 100%;
    /* background: #000; */
    border-radius: 12px;
    padding: 20px;
    /* box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); */
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    justify-content: center;
}

.video-modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 101;
    margin-top: 10px;
}

.poster-modal-close {
    width: 35px;
    height: 35px;
    border: none;
    background: rgb(255 0 0);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 101;
    margin-top: 10px;
    position: absolute;
    bottom: 6%;
    /* right: 8%; */
}

.audio-content{
    position: relative;
    width: 80%;
    max-width: 450px;
    /* margin: 0 auto; */
    margin-top: -35%;
}

.audio-modal-content-img{
    width: 100%;
    height: auto;
    display: block;
}

.audio-modal-content-play{
    width: 6%;
    position: absolute;
    top: 69%;
    left: 34%;
    cursor: pointer;
}

.audio-modal-content-line{
    width: 32%;
    position: absolute;
    top: 63%;
    left: 42%;
}

.audio-modal-close {
    /* position: absolute; */
    /* top: -40px; */
    /* right: 0; */
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 101;
    margin-top: 10px;
}


#modal-video {
    width: 75%;
    height: auto;
    display: block;
    border-radius: 8px;
}

#map-container .map-base {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#map-container .map-road {
    position: absolute;
    left: 0;
    right: 0;
    top: 37%;
    width: 100%;
    height: auto;
    object-fit: contain;
}

#map-container .map-place {
    position: absolute;
    height: auto;
    object-fit: contain;
}

#map-container .map-station {
    width: 23%;
    left: 16%;
    top: 27%;
}

#map-container .map-museum {
    width: 26%;
    left: 44%;
    top: 31%;
}

#map-container .map-stonehouse {
    width: 17%;
    right: 5%;
    top: 18%;
}

#map-container .map-car {
    position: absolute;
    width: 16%;
    left: 0%;
    bottom: 36%;
    right: auto;
    top: auto;
    transform: none;
    object-fit: contain;
}

#map-container .map-car.car-moving {
    animation: car-move 2s ease-in-out forwards;
}

@keyframes car-move {
    0% {
        left: 2%;
        bottom: 46%;
    }

    100% {
        left: 18%;
        bottom: 57%;
    }
}

#map-container .map-start-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 10;
}

#map-container .map-start-btn img {
    max-width: 21vw;
    height: auto;
    display: block;
}

#rotate-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--vh);
    height: var(--vw);
    transform: rotate(90deg) translate(0, -100%);
    transform-origin: top left;
    overflow: hidden;
}

#loading-page {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f5f5f5;
}

#loading-page .bg {
    position: absolute;
    inset: 0;
    background: url('../images/loading_bg.jpg') center center/cover no-repeat;
    filter: brightness(0.85);
}

#loading-page .scrim {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
}

#loading-page .content {
    position: relative;
    z-index: 2;
    width: min(93vw, 520px);
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    /* backdrop-filter: blur(4px); */
    /* background: rgba(0, 0, 0, 0.18); */
    /* border: 1px solid rgba(255, 255, 255, 0.08); */
    /* border-radius: 20px; */
    /* box-shadow: 0 8px 24px rgba(0, 0, 0, 0.32); */
}

.hero {
    position: relative;
    z-index: 2;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 24px;
}

.hero img {
    max-width: 80vw;
    height: auto;
    display: block;
}

.hero .hero-title {
    max-width: 106vw;
}

.hero .hero-start {
    max-width: 26vw;
    margin-top: 20px;
}

.loading-label img {
    height: 23px;
    width: auto;
    display: block;
}

.loading-label {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 6px;
}

.loading-label .loading-car {
    position: absolute;
    /* bottom: -8px; */
    left: 0;
    width: 54px;
    height: auto;
    transform: translateX(-50%);
    transition: left 0.25s ease;
    pointer-events: none;
}

.loading-bar {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* gap: 10px; */
}

.loading-track {
    position: relative;
    flex: 1;
    height: 30px;
    background: #fff;
    border: 2px solid #f6a32f;
    border-radius: 999px 0 0 999px;
    overflow: hidden;
    padding: 5px 10px;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.05),
        0 2px 6px rgba(0, 0, 0, 0.08);
}

.loading-fill {
    position: absolute;
    left: 10px;
    top: 50%;
    height: 14px;
    width: 0%;
    transform: translateY(-50%);
    background:
        repeating-linear-gradient(135deg,
            rgba(255, 255, 255, 0.45) 0,
            rgba(255, 255, 255, 0.45) 8px,
            rgba(255, 204, 102, 0.5) 8px,
            rgba(255, 204, 102, 0.5) 16px),
        linear-gradient(90deg, #ffcc66, #ffa500);
    border-radius: 12px;
    transition: width 0.25s ease;
    box-shadow: inset 0 -1px 2px rgba(0, 0, 0, 0.15);
}

.loading-percent {
    min-width: 60px;
    height: 30px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(90deg, #ffae32, #ff8c0a);
    border-radius: 0 16px 16px 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.guard {
    position: fixed;
    inset: 0;
    background: #0b0c10;
    color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    text-align: center;
    z-index: 10;
}

.guard.hidden {
    display: none;
}

.guard .box {
    max-width: 520px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 24px;
    backdrop-filter: blur(4px);
}