/* =========================================
   抽卡系统样式 (Gacha System)
   ========================================= */

#gacha-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 200; /* 确保在最上层 */
    display: none; /* 默认隐藏 */
    background-color: #000;
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow: hidden;
}

#gacha-layer.active {
    display: flex;
}

/* --- 基础设置 --- */
:root {
    --theme-red: #D20015;
    --btn-white: rgb(238, 235, 234);
    --btn-yellow: rgb(253, 235, 9);
    --bg-white: #f5f5f5;
    --text-black: #1a1a1a;
}

/* --- 抽卡券数量显示 --- */
.ticket-display {
    position: absolute;
    top: 30px;
    right: 40px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 100;
    transition: all 0.3s ease;
}

.ticket-display:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    background: rgba(0, 0, 0, 0.7);
}

.ticket-icon {
    width: 17px;
    height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ticket-icon svg {
    width: 100%;
    height: 100%;
    fill: var(--c-yellow);
    filter: drop-shadow(0 0 4px rgba(253, 208, 0, 0.6));
}

#ticket-count {
    font-family: var(--font-tech);
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-shadow: 0 0 6px rgba(255, 239, 1, 0.4);
}

/* --- 凭证不足弹窗 (复用 clear-account-modal 样式) --- */
#ticket-shortage-modal {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px); 
    -webkit-backdrop-filter: blur(2px);
    display: flex; 
    justify-content: center; 
    align-items: center;
    opacity: 0; 
    pointer-events: none;
    transition: opacity 0.3s ease; 
    z-index: 2000;
}

#ticket-shortage-modal.active { 
    opacity: 1; 
    pointer-events: auto; 
}

#ticket-shortage-modal .modal-panel {
    width: 100%; 
    max-width: none; 
    height: 33.33vh;
    background: #fff; 
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

#ticket-shortage-modal .modal-text {
    font-size: 14px; 
    font-weight: bold; 
    color: #8B0000; 
    margin-bottom: 0; 
    letter-spacing: 1px;
}

#ticket-shortage-modal .modal-actions { 
    margin-top: 40px;
    display: flex;
    gap: 40px; 
}

/* 移动端适配 - 竖屏 */
@media screen and (max-width: 950px) and (orientation: portrait) {
    #ticket-shortage-modal .modal-panel {
        width: 100%; 
        max-width: none; 
        height: 33.33vh;
        border-radius: 0; 
        transform: none; 
        overflow: visible;
    }
    
    #ticket-shortage-modal .modal-actions {
        transform: translate(-50%, 50%) scale(0.85);
        gap: 20px;
        position: absolute;
        bottom: 0;
        left: 50%;
    }
}

/* 强制横屏模式下的适配 */
.force-landscape-mode #ticket-shortage-modal {
    width: 100vh !important;
    height: 100vw !important;
    transform: rotate(90deg) !important;
    transform-origin: center center !important;
    left: calc((100vw - 100vh) / 2) !important;
    top: calc((100vh - 100vw) / 2) !important;
    position: fixed !important;
    z-index: 2000 !important;
}

.force-landscape-mode #ticket-shortage-modal .modal-panel {
    height: 33.33vw !important; 
}

/* --- 1. 背景层 --- */
.gacha-bg-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; display: flex;
}
.bg-left { width: 50%; height: 100%; background-color: var(--bg-white); }
.bg-right { width: 50%; height: 100%; background-color: var(--theme-red); }

/* --- 2. 动态横条 --- */
.anim-bar {
    position: absolute; top: 50%; right: 50%; transform: translateY(-50%);
    height: 12%; width: 0; background-color: var(--theme-red);
    z-index: 5; pointer-events: none;
}

/* --- 3. 角色立绘层 (z-index: 10) --- */
.char-layer {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10;
    pointer-events: none;
    opacity: 0; transform: translateX(0);
}

/* 角色立绘：整体缩放后右边对齐屏幕中轴 */
.char-img {
    position: absolute;
    top: 50%;
    right: 50%; /* 右边缘对齐屏幕中轴 */
    width: auto;
    height: 100vh; /* 按屏幕高度缩放 */
    max-width: none;
    object-fit: contain;
    object-position: right center; /* 以右边为基准 */
    transform-origin: right center;
    /* 视差位移通过 CSS 变量叠加 */
    --char-parallax-x: 0px;
    --char-parallax-y: 0px;
    transform: translate(calc(var(--char-parallax-x)), calc(-50% + var(--char-parallax-y)));
    mix-blend-mode: normal;
    transition: transform 0.1s ease-out; 
    will-change: transform;
}

/* --- 3.5 装饰文字 (z-index: 12 - 确保在角色之上) --- */
.decor-text {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 100%; text-align: center; 
    z-index: 12; 
    pointer-events: none;
    font-size: 1.5rem; font-weight: 300; letter-spacing: 1.2rem;
    color: rgba(255, 255, 255, 0.6); white-space: nowrap; opacity: 0;
}

/* --- 4. 文字描述层 (z-index: 20) --- */
.text-layer {
    position: absolute; top: 15%; right: 5%; width: 55%; z-index: 20;
    text-align: right; color: var(--text-black); opacity: 0;
    transform: translateX(50px); display: flex; flex-direction: column;
    align-items: flex-end; pointer-events: none;
}
.text-inner {
    display: flex; flex-direction: column; align-items: flex-end;
    /* 文本视差偏移，由 JS 通过 CSS 变量控制 */
    --text-parallax-x: 0px;
    --text-parallax-y: 0px;
    transform: translate(var(--text-parallax-x), var(--text-parallax-y));
    transition: transform 0.1s ease-out; will-change: transform;
}
.title-group {
    display: flex; flex-direction: column; align-items: flex-end; margin-bottom: 15px;
}
.pool-title-box {
    border: 4px solid var(--text-black); padding: 5px 15px;
    display: inline-block; background: transparent;
}
.pool-title {
    font-size: 3.5rem; font-weight: 900; letter-spacing: 0.2rem;
    line-height: 1; color: var(--text-black); margin: 0;
}
.pool-sub-bar {
    background-color: var(--text-black); color: white;
    font-size: 0.9rem; font-weight: bold; padding: 4px 12px;
    margin-top: -2px; margin-right: 4px; display: inline-block;
}
.pool-rules {
    font-size: 0.85rem; line-height: 1.6; font-weight: 600;
    color: rgba(0,0,0,0.8); margin-bottom: 2rem;
}
.rule-time {
    margin-bottom: 5px; display: flex; align-items: center;
    justify-content: flex-end; gap: 5px;
}

/* 黑色粗体保底数字 */
.pity-count { 
    color: #000000; /* 纯黑 */
    font-weight: 900; /* 最粗 */
    font-size: 1.2em; 
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* --- 5. 按钮层 (z-index: 30) --- */
.gacha-ui-layer {
    position: absolute; bottom: 8%; right: 5%; z-index: 30;
    display: flex; gap: 0; opacity: 0; pointer-events: auto;
}
.gacha-btn {
    aspect-ratio: 200 / 45; width: 18vw; max-width: 300px; min-width: 120px;
    border: none; cursor: pointer; position: relative;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    font-weight: bold; transition: transform 0.1s; flex-shrink: 0;
    background-image: none !important;
}
.gacha-btn:active { transform: scale(0.98); }
.btn-single { background-color: var(--btn-white); color: #333; }
.btn-ten { background-color: var(--btn-yellow); color: #222; }
.btn-content { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0 10%; }
.btn-icon { font-size: clamp(12px, 1.2vw, 24px); opacity: 0.6; }
.btn-text { font-size: clamp(14px, 1.5vw, 28px); letter-spacing: 1px; font-weight: 700; }
.btn-bg-decor { position: absolute; bottom: 0; left: 0; width: 100%; height: 10%; background: rgba(0,0,0,0.1); }

/* --- 动画关键帧 --- */
@keyframes bar-shoot { 0% { width: 0; } 100% { width: 50vw; } }
@keyframes char-appear { 0% { opacity: 0; transform: translateX(-10%); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes text-appear { 0% { opacity: 0; transform: translateX(50px); } 100% { opacity: 1; transform: translateX(0); } }
@keyframes simple-fade { 0% { opacity: 0; } 100% { opacity: 1; } }
@keyframes btn-fade { 0% { opacity: 0; } 100% { opacity: 1; } }

/* --- 动画控制 --- */
.animate-start .anim-bar { animation: bar-shoot 0.4s cubic-bezier(0.25, 1, 0.5, 1) forwards; animation-delay: 0.1s; }
.animate-start .decor-text { animation: simple-fade 0.8s ease forwards; animation-delay: 0.2s; }
.animate-start .char-layer { animation: char-appear 0.8s ease-out forwards; animation-delay: 0.1s; }
.animate-start .text-layer { animation: text-appear 0.6s ease-out forwards; animation-delay: 0.4s; }
.animate-start .gacha-ui-layer { animation: btn-fade 0.5s ease forwards; animation-delay: 0.7s; }

@media (max-width: 768px) {
    .pool-title { font-size: 2.5rem; }
    .pool-rules { font-size: 0.7rem; }
    .decor-text { font-size: 1.2rem; letter-spacing: 0.8rem; }
    #debug-console { width: 60%; height: 40%; }
}

/* =========================================
   抽卡结果动画样式
   ========================================= */

/* 角色展示动画容器 */
#gacha-reveal-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 400; /* 比结果页更高 */
    display: none;
    background-color: #000;
    overflow: hidden;
}

#gacha-reveal-stage.active {
    display: block;
}

/* --- Intro 层 --- */
#reveal-intro-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.light-beam-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    pointer-events: none;
    z-index: 1;
}

.light-beam {
    width: 100%;
    height: 28px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 221, 0, 0) 10%, 
        rgba(255, 255, 255, 1) 50%, 
        rgba(255, 221, 0, 0) 90%, 
        transparent 100%
    );
    transform: translateX(-150%);
    filter: blur(4px);
    opacity: 0.8;
    mix-blend-mode: screen;
}

.light-beam.animate {
    animation: beamPass 0.3s linear forwards;
}

@keyframes beamPass {
    0% { transform: translateX(-100%) scaleX(0.5); }
    50% { transform: translateX(0%) scaleX(1.5); }
    100% { transform: translateX(100%) scaleX(0.5); }
}

.intro-logo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    z-index: 5;
    pointer-events: none;
}

.stars-container {
    position: relative;
    z-index: 10;
    display: flex;
    gap: clamp(10px, 2.1vw, 21px); /* 响应式间距 */
}

.intro-star {
    width: clamp(28px, 5.6vw, 56px); /* 响应式尺寸 */
    height: clamp(28px, 5.6vw, 56px);
    object-fit: contain;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.intro-star.active {
    transform: scale(1.3);
    filter: drop-shadow(0 0 15px rgba(255,255,255,0.9));
    /* 变白动效：通过JS替换图片src */
}

/* Shader Canvas */
#shader-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 6; /* 在 Logo(5) 之上，星星(10) 之下 */
    mix-blend-mode: screen;
    pointer-events: none;
    display: none;
}

/* --- Reveal 内容层 --- */
#reveal-content-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    visibility: hidden;
}

#reveal-mask-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99;
    display: grid;
    pointer-events: none;
}

.mask-cell {
    background-color: #000;
    width: 100%;
    height: 100%;
    opacity: 1;
}

@keyframes slashFade {
    0% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); opacity: 1; }
    40% { clip-path: polygon(0 0, 100% 0, 0 100%); opacity: 1; }
    100% { clip-path: polygon(0 0, 100% 0, 0 100%); opacity: 0; }
}

.mask-cell.animating {
    animation: slashFade 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.safe-area {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    max-width: 1920px;
    z-index: 5;
    pointer-events: none;
}

.char-img-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reveal-char-img {
    height: 110%;
    width: auto;
    transform: translateY(5%);
    opacity: 0;
    transition: opacity 0.5s ease-out;
    filter: drop-shadow(0 0 30px rgba(0,0,0,0.7));
}

.reveal-char-img.show {
    opacity: 1;
}

.ui-panel {
    position: absolute;
    bottom: 10%;
    right: 5%;
    text-align: right;
    color: white;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease-out 0.3s;
}

.ui-panel.show {
    opacity: 1;
    transform: translateX(0);
}

.ui-new-tag {
    background: #ffcc00;
    color: #000;
    font-weight: 800;
    font-size: clamp(10px, 1.4vw, 14px); /* 响应式字体 */
    padding: 4px 12px;
    display: inline-block;
    transform: skewX(-10deg);
}

.ui-name {
    font-size: clamp(35px, 7vw, 70px); /* 响应式字体 */
    line-height: 1;
    font-weight: 900;
    margin: 10px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.ui-sub {
    font-size: clamp(11px, 1.75vw, 17px); /* 响应式字体 */
    color: #ccc;
    letter-spacing: 5px;
    margin-bottom: 10px;
}

.ui-stars {
    display: flex;
    justify-content: flex-end;
    gap: 5px;
}

.ui-star-icon {
    width: clamp(11px, 1.75vw, 17px); /* 响应式尺寸 */
    height: clamp(11px, 1.75vw, 17px);
    object-fit: contain;
}

/* 跳过按钮 */
.btn-skip-reveal {
    position: absolute;
    top: 30px;
    right: 40px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 8px; /* 调整 padding */
    width: 36px; /* 固定宽度 */
    height: 36px; /* 固定高度 */
    display: flex;
    justify-content: center; /* 居中 */
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: all 0.2s;
    display: none; /* 默认隐藏，仅十连显示 */
    border-radius: 4px; /* 轻微圆角 */
}

.btn-skip-reveal:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
}

.btn-skip-reveal svg {
    width: 20px; /* 稍微放大图标 */
    height: 20px;
    fill: currentColor; /* 确保填充颜色 */
}

/* 结果动画容器 */
#gacha-result-stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 300;
    display: none;
    background-color: #000;
}

#gacha-result-stage.active {
    display: flex;
    justify-content: center;
    align-items: center; /* 改为居中对齐 */
    gap: 8px;
    width: 100%;
    height: 100vh; /* 改为全屏高度 */
    perspective: 1200px;
    position: absolute;
    top: 0; /* 从顶部开始 */
    left: 0;
    transform: translateY(-15vh); /* 向上偏移15vh，使中轴位于35%位置 (50% - 15% = 35%) */
    padding-bottom: 0;
    box-sizing: border-box;
}

/* 单列容器 - 固定高宽比5:1 */
.gacha-col {
    position: relative;
    /* 
       计算高度:
       1. 高度限制: 85vh (对应底部留 10%: 100 - 5 - 10 = 85)
       2. 宽度限制: (100vw - 左右边距40px - 间隙72px) / 10 * 5 = (100vw - 112px) / 2
    */
    height: min(85vh, calc((100vw - 112px) / 2));
    width: calc(min(85vh, calc((100vw - 112px) / 2)) / 5);
    flex-shrink: 0;
    -webkit-box-reflect: below 2px linear-gradient(to bottom, transparent 80%, rgba(0,0,0,0.3));
    /* 性能优化：启用GPU加速 */
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
}

/* 背景长条 */
.bg-strip {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 85%;
    background-color: #0a0a0a;
    overflow: hidden;
    transition: box-shadow 0.3s;
    z-index: 1;
    /* 性能优化：启用GPU加速 */
    transform: translateZ(0);
    will-change: box-shadow;
}

/* 颜色光柱层 */
.strip-color-layer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%; /* 改为100%高度，通过scaleY控制显示 */
    transform: scaleY(0); /* 初始缩放为0 */
    transform-origin: bottom; /* 从底部开始缩放 */
    transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: 1;
    /* 性能优化：启用GPU加速 */
    will-change: transform;
    backface-visibility: hidden;
}

/* 背景纹理大图 */
.bg-portrait {
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8; /* 调整为80%透明度，移除叠加模式 */
    mix-blend-mode: normal;
    filter: grayscale(10%) brightness(0); /* 初始全黑，保留灰度设置 */
    transition: filter 0.5s cubic-bezier(0.22, 0.61, 0.36, 1); /* 与光柱动画同步 */
    z-index: 2;
    /* 性能优化：启用GPU加速 */
    transform: translateZ(0) scale(0.7);
    transform-origin: center center;
    will-change: filter;
    backface-visibility: hidden;
}

/* 前景剪影 */
.foreground-char {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateZ(0) scale(0.7);
    transform-origin: bottom center;
    width: 160%;
    height: 40%;
    z-index: 10;
    pointer-events: none;
    filter: brightness(0) contrast(1.2);
    transition: filter 0.4s;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    /* 性能优化：启用GPU加速 */
    will-change: filter;
    backface-visibility: hidden;
}

.foreground-char img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: bottom center;
    /* 性能优化：启用GPU加速 */
    transform: translateZ(0);
}

/* 配色配置 */
/* 紫色 (4星) - 顶部保留100%光效 */
.rarity-purple .strip-color-layer {
    background: linear-gradient(to top, #6a5acd, #6a5acd);
}
.rarity-purple.lit .bg-strip {
    /* 性能优化：减小阴影范围和模糊度 */
    box-shadow: 0 0 10px rgba(140, 122, 230, 0.4); 
}

/* 黄色 (5星) - 顶部保留100%光效 */
.rarity-yellow .strip-color-layer {
    background: linear-gradient(to top, #f1c40f, #f1c40f);
}
.rarity-yellow.lit .bg-strip {
    box-shadow: 0 0 15px rgba(243, 156, 18, 0.4);
}

/* 橙红 (6星) - 顶部保留100%光效 */
.rarity-orange .strip-color-layer {
    background: linear-gradient(to top, #ff4500, #ff4500);
}
.rarity-orange.lit .bg-strip {
    box-shadow: 0 0 25px rgba(255, 42, 0, 0.4);
}

/* 点亮状态 */
.gacha-col.lit .strip-color-layer {
    transform: scaleY(1); /* 缩放至完整高度 */
}

.gacha-col.lit .bg-portrait {
    filter: grayscale(10%) brightness(1); /* 恢复亮度 */
}

.gacha-col.lit .foreground-char {
    filter: brightness(0) contrast(1.2);
}

/* 闪烁动画 - 性能优化版 */
@keyframes flashAnim {
    0% { filter: brightness(1); }
    50% { filter: brightness(2); } /* 降低亮度倍数 */
    100% { filter: brightness(1); }
}

@keyframes flashAnimHigh {
    0% { filter: brightness(1); }
    50% { filter: brightness(3); box-shadow: 0 0 30px #ff4500; } /* 降低复杂度和阴影 */
    100% { filter: brightness(1); }
}

.gacha-col.flash .bg-strip {
    animation: flashAnim 0.5s ease-out forwards;
}

.gacha-col.rarity-orange.flash .bg-strip {
    animation: flashAnimHigh 0.7s ease-out forwards;
}

/* --- 返回按钮样式 --- */
.gacha-back-btn {
    position: absolute;
    top: 30px;
    left: 40px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.2s;
    clip-path: polygon(
        0 8px,
        8px 0,
        100% 0,
        100% calc(100% - 8px),
        calc(100% - 8px) 100%,
        0 100%
    );
}

.gacha-back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    background: rgba(255, 255, 255, 1);
}

.gacha-back-btn:active {
    transform: translateY(0);
}

.gacha-back-btn::before, .gacha-back-btn::after {
    content: '';
    position: absolute;
    width: 45%;
    height: 3px;
    background: #1a1a1a;
    border-radius: 2px;
}

.gacha-back-btn::before { transform: rotate(45deg); }
.gacha-back-btn::after { transform: rotate(-45deg); }

/* --- 入口按钮样式 (在关卡选择页) --- */
/* 已移除 .gacha-entry-pos 的绝对定位，改用 css/pages.css 中的 Flexbox 布局 */


/* 寻访记录按钮位置 */
.gacha-history-btn {
    position: absolute;
    bottom: 30px;
    left: 40px;
    z-index: 100;
    transform: scale(0.9);
    transform-origin: bottom left;
}

/* 移除旧的 btn-gacha-entry 样式，因为现在使用通用的 enf-btn 样式 */

/* 确保干员寻访按钮在移动端横屏时与设置面板内的按钮样式一致 */
@media screen and (max-width: 950px) and (orientation: landscape) {
    #btn-gacha-entry .enf-deco-line {
        flex: 0 0 50px !important;
        min-width: 50px;
    }
    
    #btn-gacha-entry.enf-btn {
        height: 32px !important;
        padding: 0 4px 0 12px !important;
        border-radius: 16px !important;
        font-size: 11px !important;
        gap: 4px !important;
    }
    
    #btn-gacha-entry .enf-icon {
        width: 24px !important;
        height: 24px !important;
    }
    
    #btn-gacha-entry .enf-icon svg {
        width: 10px !important;
        height: 10px !important;
    }
}