/* view10 · 赛博星港（V3 赛博朋克主题） */
:root {
    --bg: #030718;
    --ink: #e8f4ff;
    --ink-soft: rgba(232, 244, 255, 0.72);
    --ink-faint: rgba(232, 244, 255, 0.45);

    --cyan: #22d3ee;
    --cyan-bright: #67e8f9;
    --blue: #3b82f6;
    --blue-deep: #1d4ed8;
    --magenta: #e879f9;
    --go: #10b981;

    --glass: rgba(13, 28, 58, 0.55);
    --glass-strong: rgba(16, 32, 64, 0.78);
    --glass-brd: rgba(56, 189, 248, 0.35);
    --line: rgba(56, 189, 248, 0.22);

    --glow-cyan: 0 0 18px rgba(34, 211, 238, 0.45);
    --glow-blue: 0 0 18px rgba(59, 130, 246, 0.4);
    --shadow: 0 18px 50px rgba(2, 8, 30, 0.6);
    --shadow-purple: var(--glow-blue);

    --grad-blue: linear-gradient(135deg, #3b82f6 0%, #22d3ee 55%, #67e8f9 100%);
    --grad-cyan: linear-gradient(135deg, #67e8f9, #3b82f6);
    --grad-magenta: linear-gradient(135deg, #67e8f9, #e879f9);

    --radius: 16px;
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    min-height: 100%;
}

body {
    min-height: 100%;
    font-family: "PingFang SC", "Microsoft YaHei", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
    overflow-x: hidden;
}

/* 旧装饰层关闭，避免与赛博背景冲突 */
body::before,
body::after { display: none; }

button,
input { font: inherit; }
button { touch-action: manipulation; }
img { display: block; }

/* ============ 动态赛博星空背景 ============ */
.cosmos {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background:
        radial-gradient(1200px 600px at 70% -10%, rgba(37, 99, 235, 0.28), transparent 60%),
        radial-gradient(900px 500px at 10% 20%, rgba(14, 116, 144, 0.22), transparent 60%),
        radial-gradient(1000px 700px at 50% 110%, rgba(29, 78, 216, 0.25), transparent 60%),
        linear-gradient(180deg, #02040f 0%, #050b22 55%, #030718 100%);
}
.layer { position: absolute; inset: 0; }

.stars-1, .stars-2, .stars-3 { background-repeat: repeat; }
.stars-1 {
    background-image:
        radial-gradient(1px 1px at 20px 30px, #fff, transparent),
        radial-gradient(1px 1px at 90px 130px, #cfeaff, transparent),
        radial-gradient(1px 1px at 160px 60px, #fff, transparent),
        radial-gradient(1px 1px at 240px 180px, #bae6fd, transparent);
    background-size: 280px 220px;
    opacity: .9;
    animation: twinkle 4s ease-in-out infinite;
}
.stars-2 {
    background-image:
        radial-gradient(1.6px 1.6px at 50px 90px, #fff, transparent),
        radial-gradient(1.6px 1.6px at 180px 200px, #a5f3fc, transparent),
        radial-gradient(1.6px 1.6px at 300px 40px, #fff, transparent);
    background-size: 360px 260px;
    opacity: .7;
    animation: twinkle 6s ease-in-out infinite reverse;
}
.stars-3 {
    background-image:
        radial-gradient(2.4px 2.4px at 120px 160px, #fff, transparent),
        radial-gradient(2.4px 2.4px at 320px 80px, #e0f2fe, transparent);
    background-size: 480px 380px;
    opacity: .6;
    animation: twinkle 8s ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: .9; } 50% { opacity: .35; } }

.nebula {
    position: absolute;
    width: 60vw; height: 60vw;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .35;
    animation: drift 26s ease-in-out infinite alternate;
}
.nebula.n1 { top: -20%; left: -10%; background: radial-gradient(circle, rgba(56, 189, 248, .5), transparent 65%); }
.nebula.n2 { bottom: -25%; right: -15%; background: radial-gradient(circle, rgba(99, 102, 241, .45), transparent 65%); animation-delay: -13s; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(6vw,4vh) scale(1.12); } }

.meteor {
    position: absolute;
    top: -5%;
    width: 2px; height: 110px;
    background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(103,232,249,.6), transparent);
    border-radius: 2px;
    opacity: 0;
    animation: shoot 9s linear infinite;
    transform: rotate(28deg);
}
.meteor.m1 { left: 18%; animation-delay: 1s; }
.meteor.m2 { left: 55%; animation-delay: 4.5s; }
.meteor.m3 { left: 82%; animation-delay: 7s; }
@keyframes shoot {
    0% { opacity: 0; transform: rotate(28deg) translate(0,0); }
    4% { opacity: 1; }
    14% { opacity: 0; transform: rotate(28deg) translate(-38vw, 58vh); }
    100% { opacity: 0; }
}

.cyber-grid {
    position: absolute;
    left: -30%; right: -30%; bottom: 0;
    height: 46vh;
    transform: perspective(600px) rotateX(62deg);
    transform-origin: bottom center;
    background-image:
        linear-gradient(rgba(34, 211, 238, .22) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, .16) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.85) 60%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.85) 60%, #000 100%);
    animation: gridmove 3.2s linear infinite;
}
@keyframes gridmove { from { background-position: 0 0, 0 0; } to { background-position: 0 64px, 0 0; } }

.horizon {
    position: absolute;
    left: 0; right: 0; bottom: 38vh;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(34,211,238,.8), rgba(232,121,249,.5), rgba(34,211,238,.8), transparent);
    filter: blur(1px);
    opacity: .7;
    animation: hpulse 3s ease-in-out infinite;
}
@keyframes hpulse { 0%, 100% { opacity: .7; } 50% { opacity: .35; } }

.scanlines {
    background: repeating-linear-gradient(180deg, rgba(255,255,255,.014) 0 1px, transparent 1px 4px);
}

/* ============ 页面主体 ============ */
.app-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1180px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 14px 16px 32px;
}

/* 顶部主视觉（站点标题条） */
.main-nav {
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
    padding: 14px 18px;
    border-radius: 18px;
    background: var(--glass);
    border: 1px solid var(--glass-brd);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
}
.main-nav::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan), var(--magenta), var(--cyan), transparent);
    filter: blur(.4px);
    opacity: .8;
}
.header-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.nav-brand { width: min(860px, 100%); margin: 0 auto; }
.brand-line { display: flex; align-items: center; justify-content: center; }
.nav-title {
    color: var(--ink);
    font-size: 1.7rem;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: 1px;
    background: linear-gradient(90deg, #e0f2fe, #67e8f9 50%, #e879f9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 22px rgba(34, 211, 238, .35);
}
.nav-subtitle { display: none; }

/* 公告 + 增加爆率 */
.notice-section { margin-bottom: 14px; }
.notice-shell {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--glass);
    border: 1px solid rgba(56, 189, 248, .22);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.notice-label {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    width: 28px; height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--grad-cyan);
    box-shadow: 0 0 10px rgba(56, 189, 248, .5);
}
.notice-icon { width: 16px; height: 16px; object-fit: contain; filter: brightness(0) invert(1); }
.notice-marquee {
    position: relative;
    z-index: 1;
    min-width: 0;
    flex: 1;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.notice-track {
    display: inline-flex;
    align-items: center;
    gap: 30px;
    white-space: nowrap;
    line-height: 1;
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 800;
    animation: noticeScroll 16s linear infinite;
}
.notice-track span { display: inline-flex; align-items: center; height: 40px; }
.notice-shell:hover .notice-track { animation-play-state: paused; }
@keyframes noticeScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 分类标签（悬浮胶囊） */
.category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    padding: 4px 2px 8px;
    overflow-x: auto;
    scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 800;
    background: rgba(13, 28, 58, .5);
    border: 1px solid rgba(56, 189, 248, .2);
    box-shadow: 0 6px 18px rgba(2, 8, 30, .4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform .22s var(--ease), color .22s var(--ease), background .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.category-tab:hover {
    color: var(--ink);
    border-color: rgba(103, 232, 249, .5);
}
.category-tab.active {
    color: #fff;
    border-color: transparent;
    background: var(--grad-blue);
    box-shadow: 0 0 16px rgba(34, 211, 238, .5);
    transform: translateY(-1px);
}

/* 游戏区：去掉大边框，卡片直接悬浮在星空上 */
.games-section {
    position: relative;
    margin-top: 2px;
}
.section-header {
    position: relative;
    z-index: 1;
    display: block;
    gap: 12px;
    margin-bottom: 14px;
}
.section-header__meta { display: none; }
.section-title { color: var(--ink); font-size: 1.42rem; font-weight: 950; }
.section-subtitle { margin-top: 6px; color: var(--ink-soft); font-size: 0.8rem; font-weight: 700; }

.games-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(152px, 1fr));
    gap: 16px 14px;
}

/* 游戏卡片 */
.game-card {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    background: var(--glass);
    border: 1px solid rgba(56, 189, 248, .28);
    box-shadow: 0 6px 24px rgba(2, 8, 30, .55);
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
    will-change: transform;
}
.game-card::before {
    content: "";
    position: absolute;
    top: 0; left: -70%;
    width: 55%; height: 100%;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(105deg, transparent, rgba(103, 232, 249, .22), transparent);
    transition: left .55s ease;
}
.game-card:hover {
    transform: translateY(-6px);
    border-color: rgba(103, 232, 249, .75);
    box-shadow: 0 0 22px rgba(34, 211, 238, .45), 0 18px 44px rgba(2, 8, 30, .7);
}
.game-card:hover::before { left: 130%; }

.game-media {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.game-media.color-1 { background: linear-gradient(150deg, #0ea5e9, #1d4ed8); }
.game-media.color-2 { background: linear-gradient(150deg, #22d3ee, #1e40af); }
.game-media.color-3 { background: linear-gradient(150deg, #6366f1, #0e7490); }
.game-media.color-4 { background: linear-gradient(150deg, #38bdf8, #1e3a8a); }
.game-media.color-5 { background: linear-gradient(150deg, #2dd4bf, #1d4ed8); }
.game-media.color-6 { background: linear-gradient(150deg, #60a5fa, #155e75); }
.game-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(3, 7, 24, .92) 100%);
}
.game-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .42s var(--ease), filter .42s var(--ease);
}
.game-card:hover .game-poster { transform: scale(1.06); filter: contrast(1.05) saturate(1.06); }

.game-badge {
    position: absolute;
    left: 6px; top: 6px;
    z-index: 2;
    max-width: calc(100% - 12px);
    padding: 3px 8px;
    border-radius: 8px;
    color: #04121f;
    background: linear-gradient(90deg, #67e8f9, #fbbf24);
    font-size: 0.6rem;
    font-weight: 900;
    box-shadow: 0 0 10px rgba(103, 232, 249, .6);
}

.game-info {
    position: relative;
    z-index: 1;
    padding: 9px 11px 11px;
}
.game-title {
    height: 2.1rem;
    color: #fff;
    font-size: 0.82rem;
    line-height: 1.3;
    font-weight: 800;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-align: center;
    text-shadow: 0 0 8px rgba(34, 211, 238, .4);
}
.game-meta {
    display: none !important;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.72rem;
}
.game-type {
    min-width: 0;
    padding: 3px 8px;
    border: 1px solid rgba(103, 232, 249, .3);
    border-radius: 8px;
    color: var(--ink-soft);
    background: rgba(34, 211, 238, .12);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.game-rating { flex: 0 0 auto; color: var(--cyan-bright); font-weight: 900; }
.rating-star { color: var(--cyan-bright); }

.play-button {
    width: 100%;
    min-height: 34px;
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: none;
    border-radius: 10px;
    color: #eaf7ff;
    background: var(--grad-blue);
    font-size: 0.74rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 0 12px rgba(56, 189, 248, .35), inset 0 1px 0 rgba(255,255,255,.25);
    position: relative;
    overflow: hidden;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease);
}
.play-button::before {
    content: "";
    position: absolute;
    inset: 0; left: -110%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
    transition: left .5s var(--ease);
}
.play-button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #3b82f6, #67e8f9);
    box-shadow: 0 0 22px rgba(56, 189, 248, .7);
}
.play-button:hover::before { left: 110%; }
.play-button:active { transform: scale(.98); }
.play-button.loading,
.play-button:disabled { opacity: .56; cursor: wait; }
.play-icon { width: 15px; height: 15px; object-fit: contain; filter: brightness(0) invert(1); }

/* 分页兜底样式（主要样式在页内 <style>） */
.pagination {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 22px 0 0;
}

/* 底部 */
.app-footer {
    margin-top: 28px;
    margin-bottom: 8px;
    padding: 18px;
    color: var(--ink-soft);
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    background: var(--glass);
    border: 1px solid var(--glass-brd);
    border-radius: var(--radius);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.footer-text { color: var(--ink-soft); }

/* 增加爆率按钮（异色：翡翠绿，主样式在页内 <style>） */
.boost-btn { color: #fff; }

/* ============ 弹窗公告（保留原逻辑样式） ============ */
.popup-notice-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 9998;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    padding: 20px;
}
.popup-notice-overlay.active { opacity: 1; visibility: visible; }
.popup-notice-modal {
    position: relative;
    background: linear-gradient(160deg, #0a1430, #0a1228);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    padding: 28px 24px 24px;
    width: 100%; max-width: 400px;
    text-align: center;
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.2);
    transform: translateY(20px);
    transition: transform 0.35s ease;
}
.popup-notice-overlay.active .popup-notice-modal { transform: translateY(0); }
.popup-notice-close {
    position: absolute; top: 12px; right: 14px;
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: #a8a4c4; font-size: 14px; cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all 0.2s;
}
.popup-notice-close:hover { background: rgba(239,68,68,0.2); color: #ef4444; }
.popup-notice-fire { font-size: 36px; margin-bottom: 10px; }
.popup-notice-title { font-size: 18px; font-weight: 700; color: #fbbf24; margin-bottom: 14px; line-height: 1.3; }
.popup-notice-content { font-size: 14px; line-height: 1.8; color: #d1d5db; margin-bottom: 20px; white-space: pre-wrap; word-break: break-word; }
.popup-notice-btn {
    display: inline-block; padding: 10px 48px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff; border: none; border-radius: 24px;
    font-size: 15px; font-weight: 700; cursor: pointer;
    transition: all 0.25s; box-shadow: 0 4px 16px rgba(34,197,94,0.3);
}
.popup-notice-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(34,197,94,0.45); }

/* ============ 客服浮动按钮（保留备用） ============ */
.service-float-area {
    position: fixed; right: 16px; bottom: 20px; z-index: 10000;
    display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none;
}
.service-toggle {
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 22px rgba(59, 130, 246, 0.45);
    transition: all 0.3s; position: relative; pointer-events: auto;
}
.service-toggle:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(59, 130, 246, 0.6); }
.service-panel {
    pointer-events: auto;
    background: linear-gradient(160deg, #1a1a2e, #141428);
    border-radius: 16px; border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.2);
    padding: 16px; width: 280px;
    opacity: 0; visibility: hidden; transform: translateY(15px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: bottom right;
}
.service-panel.active { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.service-panel-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid rgba(59, 130, 246, 0.2); margin-bottom: 12px; }
.service-panel-title { font-size: 16px; font-weight: 700; color: var(--ink); margin: 0; }
.service-panel-close { width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); cursor: pointer; display: flex; align-items: center; justify-content: center; color: #a8a4c4; font-size: 14px; transition: all 0.2s; }
.service-panel-close:hover { background: rgba(239,68,68,0.2); color: #ef4444; }
.service-list { display: flex; flex-direction: column; gap: 8px; }
.service-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: rgba(255,255,255,0.04); border-radius: 12px; border: 1px solid rgba(255,255,255,0.06); transition: all 0.25s; }
.service-item:hover { background: rgba(59, 130, 246, 0.1); }
.service-item-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(59, 130, 246, 0.15); display: flex; align-items: center; justify-content: center; overflow: hidden; font-size: 18px; flex-shrink: 0; }
.service-item-icon img { width: 100%; height: 100%; object-fit: cover; }
.service-item-info { flex: 1; min-width: 0; }
.service-item-name { font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.service-item-account { font-size: 11px; color: #fff; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.service-item-actions { display: flex; gap: 6px; flex-shrink: 0; }
.service-copy-btn, .service-add-btn { padding: 5px 10px; border-radius: 6px; font-size: 11px; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s; white-space: nowrap; }
.service-copy-btn { background: linear-gradient(135deg, #3b82f6, #60a5fa); color: #fff; }
.service-copy-btn:hover { box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4); transform: translateY(-1px); }
.service-add-btn { background: rgba(255,255,255,0.08); color: var(--ink-soft); border: 1px solid rgba(255,255,255,0.15); }
.service-add-btn:hover { background: rgba(59, 130, 246, 0.2); color: #fff; }
.service-empty { text-align: center; color: #6b7280; padding: 20px; font-size: 13px; }

/* ============ 竖滚公告（保留备用） ============ */
.scroll-notice-section { position: relative; margin-bottom: 16px; }
.scroll-notice-shell {
    position: relative; overflow: hidden; border-radius: 18px;
    background: rgba(13, 28, 58, .6); border: 1px solid var(--line); padding: 10px 0;
    box-shadow: var(--shadow); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.scroll-notice-viewport { overflow: hidden; height: 36px; position: relative; -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 10%, #000 90%, transparent 100%); }
.scroll-notice-track { display: flex; flex-direction: column; will-change: transform; }
.scroll-notice-item { display: flex; align-items: center; justify-content: center; gap: 2px; height: 36px; padding: 0 16px; font-size: 0.85rem; font-weight: 650; white-space: nowrap; flex-shrink: 0; }
.sn-text { color: var(--ink-soft); }
.sn-username, .sn-platform { font-weight: 750; }
.sn-score { font-weight: 850; font-size: 0.92rem; }
@keyframes scrollNoticeVertical { 0% { transform: translateY(0); } 100% { transform: translateY(-50%); } }

/* ============ 游戏 iframe 弹窗（保留备用） ============ */
.game-modal { position: fixed; inset: 0; z-index: 9999; display: none; background: #000; }
.game-modal.active { display: block; }
.game-stage, .game-modal-content { position: absolute; inset: 0; width: 100vw; height: 100dvh; overflow: hidden; background: #000; }
.game-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; background: #000; }
.game-modal-header, .game-title-bar, .game-modal-controls, .fullscreen-btn, .close-btn { display: none; }
.game-loading {
    position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%);
    min-width: 180px; padding: 16px 20px; border: 1px solid rgba(147, 197, 253, 0.32); border-radius: var(--radius);
    color: #fff; background: rgba(12, 12, 22, 0.72);
    box-shadow: 0 24px 80px rgba(0,0,0,0.48), 0 0 24px rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(22px) saturate(1.55); -webkit-backdrop-filter: blur(22px) saturate(1.55);
    text-align: center; font-weight: 950;
}
.game-control-shell { position: fixed; left: calc(12px + env(safe-area-inset-left)); top: calc(12px + env(safe-area-inset-top)); z-index: 10002; }
.game-menu-toggle {
    width: 50px; height: 50px; display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid rgba(147, 197, 253, 0.32); border-radius: var(--radius);
    background: rgba(18, 18, 32, 0.78);
    box-shadow: 0 18px 48px rgba(0,0,0,0.34), 0 0 20px rgba(59, 130, 246, 0.18);
    backdrop-filter: blur(24px) saturate(1.8); -webkit-backdrop-filter: blur(24px) saturate(1.8);
    cursor: pointer; transition: transform 0.22s var(--ease), background 0.22s var(--ease);
}
.game-menu-toggle:hover { transform: translateY(-2px); background: rgba(35, 35, 56, 0.9); }
.game-menu-toggle img { width: 30px; height: 30px; object-fit: contain; }
.game-action-menu {
    position: absolute; left: 0; top: 58px; width: 160px; display: grid; gap: 6px; padding: 6px;
    border: 1px solid rgba(147, 197, 253, 0.32); border-radius: var(--radius); background: rgba(18, 18, 32, 0.84);
    box-shadow: 0 20px 54px rgba(0,0,0,0.42), 0 0 20px rgba(59, 130, 246, 0.18);
    backdrop-filter: blur(26px) saturate(1.8); -webkit-backdrop-filter: blur(26px) saturate(1.8);
    opacity: 0; transform: translateY(-8px) scale(0.96); pointer-events: none; transform-origin: top left;
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.game-action-menu.active { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.game-action-btn {
    min-height: 42px; display: flex; align-items: center; gap: 8px; border: none; border-radius: var(--radius);
    padding: 0 12px; color: var(--ink); background: rgba(255,255,255,0.06); font-size: 0.9rem; font-weight: 950; cursor: pointer;
    transition: transform 0.18s var(--ease), background 0.18s var(--ease);
}
.game-action-btn:hover { background: rgba(59, 130, 246, 0.22); transform: translateX(2px); }
.game-action-icon { width: 22px; height: 22px; object-fit: contain; }

/* CQ9 选择弹窗（保留备用） */
.cq9-choice-modal {
    position: fixed; inset: 0; z-index: 10002; display: none; align-items: center; justify-content: center; padding: 18px;
    background: rgba(0, 0, 0, 0.68); backdrop-filter: blur(24px) saturate(1.6); -webkit-backdrop-filter: blur(24px) saturate(1.6);
}
.cq9-choice-modal.active { display: flex; }
.cq9-choice-panel {
    width: min(94vw, 420px); padding: 18px; border: 1px solid rgba(147, 197, 253, 0.38); border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(40, 40, 62, 0.94), rgba(18, 18, 32, 0.96));
    box-shadow: var(--shadow), 0 0 28px rgba(59, 130, 246, 0.2); animation: panelIn 0.24s var(--ease);
}
.cq9-choice-title { color: var(--ink); font-size: 1.18rem; margin-bottom: 6px; font-weight: 950; }
.cq9-choice-name { color: var(--ink-soft); font-size: 0.92rem; margin-bottom: 14px; font-weight: 700; }
.cq9-choice-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cq9-choice-btn, .cq9-choice-cancel { min-height: 44px; border: none; border-radius: var(--radius); font-weight: 950; cursor: pointer; transition: transform 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.cq9-choice-btn { color: #fff; background: var(--grad-blue); box-shadow: 0 12px 30px rgba(59, 130, 246, 0.26); }
.cq9-choice-btn.feature { color: #fff; background: linear-gradient(135deg, #22d3ee 0%, #1d4ed8 50%, #1e40af 100%); }
.cq9-choice-cancel { width: 100%; margin-top: 8px; color: var(--ink-soft); background: rgba(255,255,255,0.08); border: 1px solid rgba(147, 197, 253, 0.22); }
.cq9-choice-btn:hover, .cq9-choice-cancel:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(59, 130, 246, 0.28); }
.protection-overlay { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; flex-direction: column; color: #fff; background: rgba(0,0,0,0.9); text-align: center; }

@keyframes panelIn { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }

/* ============ 响应式 ============ */
@media (max-width: 480px) {
    .app-container { padding: 12px 12px 28px; }
    .nav-title { font-size: 1.4rem; }
    .games-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 12px 10px; }
    .game-title { font-size: 0.76rem; }
}
@media (min-width: 768px) {
    .app-container { padding: 20px; }
    .nav-title { font-size: 2rem; }
}
@media (min-width: 1180px) {
    .app-container { padding: 24px; }
    .games-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 18px 16px; }
}
