/* title.css - 标题画面 */
.scene--title {
    display: flex; align-items: center; justify-content: center;
    background: var(--color-bg);
    overflow: hidden; position: relative;
}

/* 背景图层 + 暗色遮罩 */
.title-bg {
    position: absolute; inset: 0; pointer-events: none;
    background: url('../../resources/bg/main-bg.webp') center/cover no-repeat;
}
.title-bg::after {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(ellipse at center top, rgba(10,14,23,0.35) 0%, rgba(10,14,23,0.75) 55%, rgba(10,14,23,0.92) 100%),
        linear-gradient(to top, rgba(10,14,23,0.95) 0%, transparent 40%);
}
.title-particles { position: absolute; inset: 0; overflow: hidden; z-index: 1; }
.particle {
    position: absolute; bottom: -10px;
    background: var(--color-gold); border-radius: 50%;
    animation: particleRise linear forwards;
    pointer-events: none;
}
@keyframes particleRise {
    from { transform: translateY(0) scale(1); opacity: var(--opacity, 0.5); }
    to { transform: translateY(-100vh) scale(0); opacity: 0; }
}

/* 内容层 */
.title-content {
    position: relative; z-index: 2; text-align: center;
    padding: 24px 20px 60px;
    display: flex; flex-direction: column; align-items: center;
}

/* Logo */
.title-logo { margin-bottom: 40px; }
.title-logo__sub {
    font-size: 14px; letter-spacing: 8px; color: var(--color-gold);
    text-transform: uppercase; margin-bottom: 6px; opacity: 0.85;
    text-shadow: 0 0 12px rgba(240,192,64,0.4);
}
.title-logo__main {
    font-size: clamp(44px, 9vw, 72px); font-weight: 900;
    background: linear-gradient(135deg, #ffd700, #fff8dc, #ffd700);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    filter: drop-shadow(0 0 20px rgba(240,192,64,0.5))
            drop-shadow(0 2px 6px rgba(0,0,0,0.8));
    animation: titleGlow 3s ease-in-out infinite alternate;
}
@keyframes titleGlow {
    from { filter: drop-shadow(0 0 16px rgba(240,192,64,0.4)) drop-shadow(0 2px 6px rgba(0,0,0,0.8)); }
    to { filter: drop-shadow(0 0 32px rgba(240,192,64,0.7)) drop-shadow(0 2px 6px rgba(0,0,0,0.8)); }
}
.title-logo__tagline {
    font-size: 16px; color: rgba(232,234,240,0.7); margin-top: 10px;
    letter-spacing: 6px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.7);
}

/* 菜单按钮组 */
.title-menu {
    display: flex; flex-direction: column; gap: 10px; align-items: center;
    width: 100%; max-width: 320px;
}
.title-menu .btn {
    min-width: 240px; width: 100%;
    padding: 13px 24px; font-size: 16px; font-weight: 700;
    border-radius: 12px; letter-spacing: 2px;
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    transition: all 0.25s ease;
    position: relative;
}

/* 继续游戏 — 主色透明 */
.title-menu .btn--primary {
    background: rgba(78,168,222,0.2);
    border: 1.5px solid rgba(78,168,222,0.5);
    color: #fff;
    box-shadow: 0 0 16px rgba(78,168,222,0.15), inset 0 1px 0 rgba(255,255,255,0.08);
}
.title-menu .btn--primary:hover {
    background: rgba(78,168,222,0.35);
    border-color: rgba(78,168,222,0.8);
    box-shadow: 0 0 24px rgba(78,168,222,0.3), inset 0 1px 0 rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

/* 新的赛季 — 金色高亮 */
.title-menu .btn--gold {
    background: rgba(240,192,64,0.15);
    border: 1.5px solid rgba(240,192,64,0.5);
    color: #f0c040;
    text-shadow: 0 0 10px rgba(240,192,64,0.3);
    box-shadow: 0 0 16px rgba(240,192,64,0.1), inset 0 1px 0 rgba(255,255,255,0.06);
}
.title-menu .btn--gold:hover {
    background: rgba(240,192,64,0.25);
    border-color: rgba(240,192,64,0.8);
    color: #ffd54f;
    box-shadow: 0 0 24px rgba(240,192,64,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* 次要按钮（设置/说明/引导） */
.title-menu .btn--outline {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(232,234,240,0.75);
    font-size: 14px; padding: 10px 20px;
    box-shadow: none;
}
.title-menu .btn--outline:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.25);
    color: #fff;
    transform: translateY(-1px);
}

/* 底部版权 */
.title-footer {
    position: fixed; bottom: 16px; left: 0; right: 0;
    text-align: center;
    font-size: 11px; color: rgba(136,146,164,0.5); white-space: nowrap;
    pointer-events: none; z-index: 2;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.title-powered-ad {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px 7px 8px;
    border: 1px solid rgba(78,168,222,0.35);
    border-radius: 999px;
    background: rgba(10,14,23,0.62);
    color: rgba(232,247,255,0.82);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    line-height: 1;
    text-decoration: none;
    text-transform: lowercase;
    box-shadow: 0 0 18px rgba(78,168,222,0.14), inset 0 1px 0 rgba(255,255,255,0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.title-powered-ad:hover {
    transform: translateY(-2px);
    border-color: rgba(240,192,64,0.72);
    background: rgba(26,34,53,0.78);
    color: #fff8dc;
}
.title-powered-ad__icon {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    display: block;
    box-shadow: 0 0 10px rgba(78,168,222,0.35);
}

@media (max-width: 640px) {
    .title-footer {
        bottom: 58px;
    }
    .title-powered-ad {
        right: 12px;
        bottom: 12px;
    }
}
