/* ========================================
   LittileGames - 可爱粉红主题样式
   ======================================== */

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* 可爱粉红配色 */
    --pink-light: #fff0f5;
    --pink-soft: #ffb6c1;
    --pink-main: #ff69b4;
    --pink-deep: #ff1493;
    --purple-soft: #dda0dd;
    --yellow-warm: #ffd700;
    --mint-green: #98fb98;
    --sky-blue: #87ceeb;
    --white: #ffffff;
    --text-dark: #4a4a4a;
    --text-light: #777777;
    --shadow-pink: rgba(255, 105, 180, 0.3);
}

body {
    font-family: 'Nunito', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #fff0f5 0%, #ffe4e9 50%, #ffd6e0 100%);
    color: var(--text-dark);
    min-height: 100vh;
    overflow-x: hidden;
}

/* 可爱的背景装饰 */
body::before {
    content: '🌸 💖 ✨ 🎀 💕 🌷 💗 ⭐';
    position: fixed;
    top: 10px;
    left: 0;
    width: 100%;
    font-size: 1.5rem;
    text-align: center;
    opacity: 0.3;
    pointer-events: none;
    letter-spacing: 30px;
    z-index: 0;
}

/* 导航栏 */
.cyber-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 3px solid var(--pink-soft);
    box-shadow: 0 4px 20px var(--shadow-pink);
    display: flex;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
}

.logo {
    position: relative;
    text-decoration: none;
}

.logo-text {
    font-family: 'Nunito', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--pink-deep);
    text-shadow: 2px 2px 0 var(--pink-soft);
    letter-spacing: 1px;
}

.logo-text::before {
    content: '🎮 ';
}

.logo-text::after {
    content: ' 💕';
}

.main-content {
    padding-top: 90px;
    min-height: 100vh;
}

/* 扫描线效果 - 改为可爱星星 */
.scanlines {
    display: none;
}

/* ========================================
   游戏大厅样式
   ======================================== */
.game-lobby {
    display: flex;
    height: calc(100vh - 90px);
    padding: 20px;
    gap: 20px;
}

/* 左侧游戏列表 */
.game-list {
    width: 350px;
    background: var(--white);
    border: 3px solid var(--pink-soft);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-pink);
}

.game-list-header {
    padding: 20px;
    border-bottom: 2px dashed var(--pink-soft);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--pink-deep);
    text-align: center;
    background: linear-gradient(to right, #fff0f5, #ffe4ec);
}

.game-list-header::before {
    content: '🎯 ';
}

.game-list-header::after {
    content: ' 🎯';
}

.game-list-items {
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

.game-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    border-bottom: 1px dashed var(--pink-soft);
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.game-item:hover,
.game-item:active {
    background: #fff5f8;
    transform: translateX(5px);
}

.game-item.active {
    background: linear-gradient(to right, #fff0f5, #ffe8ed);
    border-left: 4px solid var(--pink-deep);
}

.game-item.unavailable {
    opacity: 0.5;
    cursor: not-allowed;
}

.game-icon {
    font-size: 2rem;
    margin-right: 16px;
    filter: drop-shadow(2px 2px 2px var(--pink-soft));
}

.game-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pink-deep);
    margin-bottom: 4px;
}

.game-info .game-name-en {
    font-size: 0.75rem;
    color: var(--text-light);
    letter-spacing: 1px;
}

/* 右侧预览区 */
.game-preview {
    flex: 1;
    background: var(--white);
    border: 3px solid var(--pink-soft);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-pink);
}

.preview-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    background: linear-gradient(180deg, #fff 0%, #fff5f8 100%);
}

.preview-icon {
    font-size: 6rem;
    margin-bottom: 24px;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

.preview-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--pink-deep);
    margin-bottom: 8px;
}

.preview-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.preview-description {
    font-size: 1.1rem;
    color: var(--text-dark);
    max-width: 500px;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* 可爱按钮 */
.cyber-btn {
    font-family: 'Nunito', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    padding: 16px 48px;
    background: linear-gradient(135deg, var(--pink-main) 0%, var(--pink-deep) 100%);
    border: none;
    border-radius: 50px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 6px 20px var(--shadow-pink);
    display: inline-block;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
}

.cyber-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px var(--shadow-pink);
}

.cyber-btn:active {
    transform: translateY(0);
    opacity: 0.9;
}

.cyber-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #ccc;
}

/* ========================================
   蜘蛛纸牌游戏样式
   ======================================== */
.game-container {
    padding: 20px;
    min-height: calc(100vh - 90px);
    background: linear-gradient(180deg, #fff5f8 0%, #ffe8ed 100%);
}

/* 游戏工具栏 */
.game-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 16px 24px;
    background: var(--white);
    border: 2px solid var(--pink-soft);
    border-radius: 15px;
    box-shadow: 0 5px 15px var(--shadow-pink);
}

.toolbar-left {
    display: flex;
    gap: 12px;
}

.toolbar-btn {
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 20px;
    background: var(--pink-light);
    border: 2px solid var(--pink-soft);
    border-radius: 25px;
    color: var(--pink-deep);
    cursor: pointer;
    transition: all 0.2s ease;
}

.toolbar-btn:hover {
    background: var(--pink-soft);
    color: white;
    transform: scale(1.05);
}

.toolbar-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.toolbar-stats {
    display: flex;
    gap: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--pink-deep);
}

/* 游戏桌面 */
.game-table {
    position: relative;
    background: linear-gradient(135deg, #fff 0%, #fff5f8 50%, #ffe8ed 100%);
    border: 3px solid var(--pink-soft);
    border-radius: 20px;
    padding: 30px;
    min-height: 600px;
    box-shadow:
        inset 0 0 50px rgba(255, 182, 193, 0.2),
        0 10px 40px var(--shadow-pink);
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

/* 可爱的桌面装饰 */
.game-table::before {
    content: '🌸';
    position: absolute;
    top: 10px;
    left: 20px;
    font-size: 1.5rem;
    opacity: 0.5;
}

.game-table::after {
    content: '🌷';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.5rem;
    opacity: 0.5;
}

/* 完成区域 */
.completed-area {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    min-height: 40px;
}

.completed-stack {
    width: 70px;
    height: 40px;
    border: 2px dashed var(--pink-soft);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0.5;
    background: rgba(255, 255, 255, 0.5);
}

.completed-stack.filled {
    opacity: 1;
    border-style: solid;
    border-color: var(--mint-green);
    background: #f0fff0;
    box-shadow: 0 0 10px rgba(152, 251, 152, 0.5);
}

/* 牌堆区域 */
.columns-area {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 30px;
}

.column {
    width: 90px;
    min-height: 400px;
    position: relative;
}

/* 扑克牌样式 - 可爱版 */
.card {
    width: 85px;
    height: 120px;
    background: linear-gradient(135deg, #ffffff 0%, #fff5f8 100%);
    border: 2px solid var(--pink-soft);
    border-radius: 12px;
    position: absolute;
    cursor: grab;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    padding: 8px;
    user-select: none;
    box-shadow: 3px 3px 10px rgba(255, 105, 180, 0.2);
}

/* 牌面装饰 */
.card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 70px;
    border: 1px dashed rgba(255, 105, 180, 0.2);
    border-radius: 6px;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 5px 8px 20px rgba(255, 105, 180, 0.3);
}

/* 牌背面 - 可爱图案 */
.card.face-down {
    background: linear-gradient(135deg, #ffb6c1 0%, #ff69b4 100%);
    border-color: var(--pink-deep);
    cursor: default;
    box-shadow: 3px 3px 10px rgba(255, 20, 147, 0.3);
}

.card.face-down::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.3) 0%, transparent 30%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.3) 0%, transparent 30%);
    border-radius: 10px;
}

.card.face-down::after {
    content: '🌸';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    pointer-events: none;
}

.card.dragging {
    cursor: grabbing;
    z-index: 1000;
    box-shadow: 8px 15px 35px rgba(255, 105, 180, 0.4);
    border-color: var(--pink-deep);
}

.card.highlight {
    box-shadow: 0 0 20px var(--yellow-warm), 0 0 40px rgba(255, 215, 0, 0.5);
    border-color: var(--yellow-warm);
    animation: highlightPulse 0.5s ease-in-out infinite;
}

@keyframes highlightPulse {

    0%,
    100% {
        box-shadow: 0 0 20px var(--yellow-warm);
    }

    50% {
        box-shadow: 0 0 30px var(--yellow-warm), 0 0 50px rgba(255, 215, 0, 0.5);
    }
}

/* 牌面数字 */
.card-value {
    font-family: 'Nunito', 'Arial', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--pink-deep);
    position: relative;
    pointer-events: none;
}

/* 左上角小花色 */
.card-value::after {
    content: '♠';
    font-size: 0.8rem;
    margin-left: 2px;
    vertical-align: top;
    color: #333;
}

.card-suit {
    font-size: 2.2rem;
    position: absolute;
    bottom: 6px;
    right: 8px;
    filter: drop-shadow(1px 1px 1px rgba(0, 0, 0, 0.1));
    pointer-events: none;
}

/* 发牌堆 */
.stock-area {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.stock-pile {
    width: 85px;
    height: 120px;
    background: linear-gradient(135deg, #ffb6c1 0%, #ff69b4 100%);
    border: 3px solid var(--pink-deep);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 3px 3px 15px rgba(255, 20, 147, 0.3);
}

.stock-pile::after {
    content: '🌸';
}

.stock-pile:hover {
    box-shadow: 5px 8px 25px rgba(255, 20, 147, 0.4);
    transform: scale(1.05);
}

.stock-count {
    position: absolute;
    bottom: -25px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--pink-deep);
}

/* 胜利覆盖层 */
.victory-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 240, 245, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.victory-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.victory-text {
    font-family: 'Nunito', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    color: var(--pink-deep);
    text-shadow: 3px 3px 0 var(--pink-soft);
    animation: victoryPulse 1s ease-in-out infinite;
    margin-bottom: 20px;
}

@keyframes victoryPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.victory-stats {
    font-family: 'Nunito', sans-serif;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 40px;
}

#victoryCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* 响应式 */
@media (max-width: 900px) {
    .game-lobby {
        flex-direction: column;
    }

    .game-list {
        width: 100%;
    }

    .columns-area {
        overflow-x: auto;
        padding-bottom: 20px;
    }
}

/* 蜘蛛纸牌移动端适配 */
@media (max-width: 768px) {
    .game-table {
        padding: 15px 8px;
    }

    .columns-area {
        gap: 4px;
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .column {
        width: 58px;
        min-width: 58px;
        min-height: 280px;
        flex-shrink: 0;
    }

    .card {
        width: 55px;
        height: 80px;
        border-radius: 8px;
        padding: 4px;
    }

    .card-value {
        font-size: 1rem;
    }

    .card-suit {
        font-size: 1.4rem;
        bottom: 3px;
        right: 4px;
    }

    .stock-pile {
        width: 55px;
        height: 80px;
        font-size: 1.8rem;
    }

    .stock-area {
        bottom: 10px;
        right: 10px;
    }

    .completed-area {
        gap: 4px;
        margin-bottom: 15px;
    }

    .completed-stack {
        width: 45px;
        height: 28px;
        font-size: 1rem;
    }

    .game-toolbar {
        flex-wrap: wrap;
        gap: 10px;
        padding: 10px 12px;
    }

    .toolbar-left {
        gap: 8px;
    }

    .toolbar-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }

    .toolbar-stats {
        gap: 16px;
    }

    .stat-value {
        font-size: 1.1rem;
    }
}

/* 胜利界面按钮组 */
.victory-buttons {
    display: flex;
    gap: 20px;
    z-index: 10001;
}

.exit-btn {
    background: linear-gradient(135deg, #dda0dd 0%, #ba55d3 100%);
}

.exit-btn:hover {
    box-shadow: 0 10px 30px rgba(186, 85, 211, 0.4);
}

/* 消息提示框 */
.message-box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 240, 245, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.message-box.show {
    opacity: 1;
    pointer-events: auto;
}

.message-content {
    background: var(--white);
    border: 3px solid var(--pink-soft);
    border-radius: 20px;
    padding: 40px 50px;
    text-align: center;
    box-shadow: 0 15px 50px var(--shadow-pink);
    max-width: 500px;
}

.message-content::before {
    content: '💖';
    display: block;
    font-size: 3rem;
    margin-bottom: 20px;
}

.message-content p {
    font-family: 'Nunito', sans-serif;
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 30px;
    line-height: 1.6;
    white-space: pre-line;
}

.message-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.message-btn {
    padding: 12px 32px;
    font-size: 1rem;
}

.message-btn.secondary {
    background: linear-gradient(135deg, #dda0dd 0%, #ba55d3 100%);
}

/* ========================================
   黄金矿工游戏样式
   ======================================== */

.gold-miner-container {
    min-height: calc(100vh - 90px);
}

/* 模式选择界面 */
.mode-select {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - 130px);
    padding: 40px;
}

.mode-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--pink-deep);
    margin-bottom: 10px;
    text-shadow: 2px 2px 0 var(--pink-soft);
}

.mode-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 40px;
}

.mode-cards {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.mode-card {
    background: var(--white);
    border: 3px solid var(--pink-soft);
    border-radius: 20px;
    padding: 40px 30px;
    width: 220px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px var(--shadow-pink);
}

.mode-card:hover {
    transform: translateY(-10px);
    border-color: var(--pink-main);
    box-shadow: 0 15px 40px var(--shadow-pink);
}

.mode-icon {
    font-size: 4rem;
    display: block;
    margin-bottom: 20px;
}

.mode-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--pink-deep);
    margin-bottom: 10px;
}

.mode-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

/* 游戏画布区域 */
.canvas-wrapper {
    position: relative;
    background: var(--white);
    border: 3px solid var(--pink-soft);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px var(--shadow-pink);
    height: calc(100vh - 200px);
    min-height: 500px;
}

#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
}

.click-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 105, 180, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    animation: pulseHint 1.5s ease-in-out infinite;
}

@keyframes pulseHint {

    0%,
    100% {
        transform: translateX(-50%) scale(1);
    }

    50% {
        transform: translateX(-50%) scale(1.05);
    }
}

/* 关卡结果覆盖层 */
.level-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 240, 245, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.level-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.level-result {
    background: var(--white);
    border: 3px solid var(--pink-soft);
    border-radius: 25px;
    padding: 50px 60px;
    text-align: center;
    box-shadow: 0 20px 60px var(--shadow-pink);
}

.level-result h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--pink-deep);
    margin-bottom: 20px;
}

.level-result p {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 30px;
}

.result-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.result-buttons .secondary {
    background: linear-gradient(135deg, #dda0dd 0%, #ba55d3 100%);
}

/* 设置面板样式 */
.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 240, 245, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.settings-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.settings-panel {
    background: var(--white);
    border: 3px solid var(--pink-soft);
    border-radius: 25px;
    padding: 40px 50px;
    min-width: 400px;
    box-shadow: 0 20px 60px var(--shadow-pink);
}

.settings-panel h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--pink-deep);
    margin-bottom: 30px;
    text-align: center;
}

.settings-group {
    margin-bottom: 25px;
}

.settings-group label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.settings-group input[type="range"] {
    width: calc(100% - 60px);
    height: 8px;
    border-radius: 4px;
    background: var(--pink-light);
    outline: none;
    -webkit-appearance: none;
    vertical-align: middle;
}

.settings-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--pink-main);
    cursor: pointer;
    box-shadow: 0 2px 6px var(--shadow-pink);
}

.settings-group input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--pink-main);
    cursor: pointer;
    border: none;
}

.setting-value {
    display: inline-block;
    width: 50px;
    text-align: right;
    font-weight: 700;
    color: var(--pink-deep);
    font-size: 0.95rem;
}

.settings-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 30px;
}

.settings-buttons .secondary {
    background: linear-gradient(135deg, #dda0dd 0%, #ba55d3 100%);
}

/* ========================================
   贪吃蛇游戏样式
   ======================================== */

.snake-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.snake-canvas {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 240, 245, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

.game-overlay h2 {
    font-size: 2rem;
    color: var(--pink-deep);
    margin-bottom: 10px;
}

.game-overlay p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.game-overlay .hint {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.control-hint {
    margin-top: 20px;
    padding: 12px 24px;
    background: var(--white);
    border: 2px solid var(--pink-soft);
    border-radius: 30px;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.control-hint span {
    display: inline-block;
    background: var(--pink-main);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-weight: 700;
    margin: 0 4px;
}

/* ========================================
   扫雷游戏样式
   ======================================== */

.minesweeper-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.difficulty-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.difficulty-btn {
    padding: 10px 20px;
    background: var(--white);
    border: 2px solid var(--pink-soft);
    border-radius: 20px;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.difficulty-btn:hover {
    border-color: var(--pink-main);
}

.difficulty-btn.active {
    background: var(--pink-main);
    border-color: var(--pink-main);
    color: white;
}

.mine-board-wrapper {
    background: var(--white);
    border: 3px solid var(--pink-soft);
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 8px 30px var(--shadow-pink);
}

.mine-board {
    display: grid;
    gap: 2px;
}

.mine-cell {
    background: linear-gradient(145deg, #ffb6c1, #ff69b4);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.1s;
    user-select: none;
}

.mine-cell:hover {
    filter: brightness(1.1);
}

.mine-cell.revealed {
    background: #fff5f8;
    cursor: default;
}

.mine-cell.mine {
    background: #ffcccc;
}

.mine-cell.flagged {
    background: linear-gradient(145deg, #ffd700, #ffb90f);
}

.mine-cell.num-1 {
    color: #1976d2;
}

.mine-cell.num-2 {
    color: #388e3c;
}

.mine-cell.num-3 {
    color: #d32f2f;
}

.mine-cell.num-4 {
    color: #7b1fa2;
}

.mine-cell.num-5 {
    color: #ff5722;
}

.mine-cell.num-6 {
    color: #00bcd4;
}

.mine-cell.num-7 {
    color: #333;
}

.mine-cell.num-8 {
    color: #888;
}

/* ========================================
   2048游戏样式
   ======================================== */

.game2048-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.game2048-board-wrapper {
    background: var(--pink-soft);
    border-radius: 15px;
    padding: 10px;
    box-shadow: 0 8px 30px var(--shadow-pink);
}

.game2048-board {
    position: relative;
    width: 350px;
    height: 350px;
}

.tile {
    position: absolute;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 800;
    border-radius: 10px;
}

.tile-bg {
    background: rgba(255, 255, 255, 0.4);
}

.tile-empty {
    background: rgba(255, 255, 255, 0.4);
}

.tile-2 {
    background: #fff5f8;
    color: #776e65;
}

.tile-4 {
    background: #ffecf0;
    color: #776e65;
}

.tile-8 {
    background: #ffb6c1;
    color: white;
}

.tile-16 {
    background: #ff91a4;
    color: white;
}

.tile-32 {
    background: #ff6b88;
    color: white;
}

.tile-64 {
    background: #ff4570;
    color: white;
}

.tile-128 {
    background: #ff1493;
    color: white;
    font-size: 1.5rem;
}

.tile-256 {
    background: #dc1480;
    color: white;
    font-size: 1.5rem;
}

.tile-512 {
    background: #ba0d6d;
    color: white;
    font-size: 1.5rem;
}

.tile-1024 {
    background: #98045a;
    color: white;
    font-size: 1.3rem;
}

.tile-2048 {
    background: #ffd700;
    color: white;
    font-size: 1.3rem;
}

.tile-4096 {
    background: #ffc125;
    color: white;
    font-size: 1.3rem;
}

.tile-8192 {
    background: #ffaa00;
    color: white;
    font-size: 1.3rem;
}

.overlay-buttons {
    display: flex;
    gap: 16px;
}

/* ========================================
   小恐龙游戏样式
   ======================================== */

.dino-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.dino-canvas {
    position: relative;
    max-width: 600px;
    width: 100%;
    height: auto;
    min-height: auto;
    background: var(--white);
    border: 3px solid var(--pink-soft);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px var(--shadow-pink);
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
}

.dino-canvas #gameCanvas {
    display: block;
    width: 100%;
    height: auto;
}

/* ========================================
   移动端响应式布局
   ======================================== */
@media screen and (max-width: 768px) {
    .cyber-nav {
        height: 56px;
        padding: 0 16px;
    }

    .logo-text {
        font-size: 1.4rem;
    }

    .main-content {
        padding-top: 70px;
    }

    /* 游戏大厅 - 移动端改为垂直布局 */
    .game-lobby {
        flex-direction: column;
        height: auto;
        padding: 10px;
        gap: 15px;
    }

    .game-list {
        width: 100%;
        max-height: 200px;
    }

    .game-list-items {
        max-height: 150px;
    }

    .game-item {
        padding: 12px 16px;
    }

    .game-icon {
        font-size: 1.6rem;
        margin-right: 12px;
    }

    .game-info h3 {
        font-size: 1rem;
    }

    .game-preview {
        min-height: 300px;
    }

    .preview-content {
        padding: 20px;
    }

    .preview-icon {
        font-size: 4rem;
        margin-bottom: 16px;
    }

    .preview-title {
        font-size: 1.8rem;
    }

    .preview-description {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .cyber-btn {
        padding: 12px 32px;
        font-size: 1rem;
    }

    /* 游戏页面工具栏 */
    .game-toolbar {
        flex-direction: column;
        gap: 10px;
        padding: 12px;
    }

    .toolbar-left {
        flex-wrap: wrap;
        gap: 8px;
    }

    .toolbar-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
}