/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* 导航栏样式 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.nav-right {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Logo样式 */
.logo {
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.2rem;
    text-decoration: none;
    color: inherit;
}

.logo:hover {
    text-decoration: none;
}

.wave {
    color: #4a90e2;
}

.lightning {
    color: #ffd700;
    font-size: 2.2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.lightning:hover {
    color: #00bfff;
    text-shadow: 0 0 10px #00bfff, 0 0 20px #00bfff, 0 0 30px #00bfff;
    animation: lightning-flicker 0.5s ease-in-out;
}

@keyframes lightning-flicker {
    0%, 100% { opacity: 1; }
    25% { opacity: 0.7; }
    50% { opacity: 1; }
    75% { opacity: 0.8; }
}

.dash {
    color: #764ba2;
}

/* 搜索框样式 */
.search-container {
    display: flex;
    align-items: center;
    background: white;
    border-radius: 25px;
    padding: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 400px;
    margin: 0 2rem;
}

.search-input {
    border: none;
    outline: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    flex: 1;
    background: transparent;
}

.search-btn {
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: #357abd;
    transform: scale(1.05);
}

/* 导航链接样式 */
.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(74, 144, 226, 0.1);
    color: #4a90e2;
    transform: translateY(-2px);
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
    display: none;
    background: #4a90e2;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.8rem;
    cursor: pointer;
    font-size: 1.2rem;
}

/* 主容器 */
.main-container {
    display: flex;
    max-width: 1200px;
    margin: 2rem auto;
    gap: 2rem;
    padding: 0 2rem;
    min-height: calc(100vh - 200px);
}

/* 侧边栏样式 */
.sidebar {
    width: 70px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 1.5rem 0.5rem;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    transition: width 0.3s ease, padding 0.3s ease;
    overflow: hidden;
}

.sidebar:hover {
    width: 250px;
    padding: 1.5rem;
}

.sidebar-header {
    opacity: 0;
    transition: opacity 0.3s ease;
    margin-bottom: 1rem;
}

.sidebar:hover .sidebar-header {
    opacity: 1;
}

.sidebar-header h3 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-align: center;
    white-space: nowrap;
}

.category-list {
    list-style: none;
}

.category-item {
    display: flex;
    align-items: center;
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    justify-content: flex-start;
}

.category-item:hover {
    background: linear-gradient(135deg, #4a90e2, #667eea);
    color: white;
    transform: translateX(5px);
}

.category-item.active {
    background: linear-gradient(135deg, #764ba2, #667eea);
    color: white;
}

.category-item i {
    width: 24px;
    height: 24px;
    text-align: center;
    margin-right: 0;
    font-size: 1.2rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: margin-right 0.3s ease;
}

.sidebar:hover .category-item i {
    margin-right: 1rem;
}

/* 彩色图标样式 */
.category-item[data-category="all"] i { color: #4a90e2; }
.category-item[data-category="new"] i { color: #ffd700; }
.category-item[data-category="trending"] i { color: #ff6b6b; }
.category-item[data-category="geometry-dash"] i { color: #00d4ff; }
.category-item[data-category="skill"] i { color: #9b59b6; }
.category-item[data-category="multiplayer"] i { color: #2ecc71; }
.category-item[data-category="2player"] i { color: #3498db; }
.category-item[data-category="action"] i { color: #e74c3c; }
.category-item[data-category="adventure"] i { color: #27ae60; }
.category-item[data-category="girls"] i { color: #e91e63; }
.category-item[data-category="card"] i { color: #795548; }
.category-item[data-category="horror"] i { color: #607d8b; }
.category-item[data-category="io"] i { color: #ff9800; }
.category-item[data-category="mahjong"] i { color: #4caf50; }
.category-item[data-category="minecraft"] i { color: #8bc34a; }
.category-item[data-category="puzzle"] i { color: #ff5722; }
.category-item[data-category="shooting"] i { color: #f44336; }
.category-item[data-category="sports"] i { color: #009688; }
.category-item[data-category="tower-defense"] i { color: #673ab7; }

/* 悬停时图标变白色 */
.category-item:hover i,
.category-item.active i {
    color: white !important;
}

.category-name {
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
    overflow: hidden;
}

.sidebar:hover .category-name {
    opacity: 1;
}

/* 主内容区域 */
.main-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.content-header h1 {
    color: #333;
    font-size: 2rem;
}

.game-count {
    color: #666;
    font-size: 1rem;
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 4rem 0;
    color: #666;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4a90e2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 游戏网格 */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.game-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.game-thumb {
    position: relative;
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-card:hover .game-thumb img {
    transform: scale(1.05);
}

/* 游戏覆盖层样式 - 修复点击问题 */
.game-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none; /* 关键！让点击事件穿透 */
}

.game-card:hover .game-overlay {
    opacity: 1;
}

.game-overlay i {
    color: white;
    font-size: 2rem;
}

.game-info-card {
    padding: 1rem;
}

.game-info-card h3 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.3;
}

.game-info-card .game-category {
    color: #4a90e2;
    font-size: 0.8rem;
    background: rgba(74, 144, 226, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    display: inline-block;
}

/* 无结果样式 */
.no-results {
    text-align: center;
    padding: 4rem 0;
    color: #666;
}

.no-results i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 1rem;
}

/* 游戏页面样式 */
.game-page {
    background: #1a1a1a;
    color: white;
}

.game-header {
    background: rgba(0, 0, 0, 0.9);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.game-nav {
    max-width: 1400px; /* 与游戏容器保持一致 */
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.back-btn {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #357abd;
    transform: translateX(-5px);
}

.game-title-nav h1 {
    font-size: 1.5rem;
    text-align: center;
}

.game-controls {
    display: flex;
    gap: 1rem;
}

.fullscreen-btn, .refresh-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.fullscreen-btn:hover, .refresh-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.mobile-nav-btn {
    display: none;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 游戏和相关游戏容器 */
.game-and-related-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    align-items: start;
}

/* 主要游戏容器 - 桌面版 */
.game-container {
    position: relative;
    width: 100%;
    height: 600px; /* 固定高度，与右侧推荐框匹配 */
    display: flex;
    align-items: center;
    justify-content: center;
    background: black;
    border-radius: 12px;
    overflow: hidden;
}

#game-iframe, #gameFrame {
    display: block !important; /* 强制显示，覆盖内联样式 */
    width: 800px !important; /* 4:3比例：600 * 4/3 = 800 */
    height: 600px !important; /* 固定高度600px */
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
    background: #222;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
    border: none;
}

/* 全屏模式样式 */
.game-container.fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    min-height: 100vh !important;
    z-index: 9999 !important;
    background: black !important;
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

.game-container.fullscreen #game-iframe,
.game-container.fullscreen #gameFrame {
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    background: black !important;
}

/* 全屏时隐藏其他元素 */
body.fullscreen-active {
    overflow: hidden;
}

body.fullscreen-active .game-header,
body.fullscreen-active .game-info,
body.fullscreen-active .related-games-sidebar,
body.fullscreen-active .footer {
    display: none;
}

.game-loading {
    text-align: center;
    color: white;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #4a90e2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.game-error {
    text-align: center;
    color: white;
}

.game-error i {
    font-size: 3rem;
    color: #ff4444;
    margin-bottom: 1rem;
}

.retry-btn {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 1rem;
}

/* 游戏信息区域 */
.game-info {
    max-width: 1400px; /* 与游戏容器保持一致 */
    margin: 2rem auto;
    padding: 0 2rem;
}

.game-details {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 2rem;
    border-radius: 15px;
}

.game-header-info {
    margin-bottom: 2rem;
}

.game-header-info h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.game-meta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.game-category {
    background: #4a90e2;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.game-rating {
    color: #ffd700;
}

.game-description, .game-instructions {
    margin-bottom: 2rem;
}

.game-description h3, .game-instructions h3 {
    color: #333;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* 相关游戏侧边栏 */
.related-games-sidebar {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 1.5rem;
    border-radius: 15px;
    height: 600px; /* 固定高度，与游戏容器匹配 */
    position: sticky;
    top: 100px;
    overflow-y: auto;
}

.related-games-sidebar h3 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-align: center;
    color: #2c3e50;
}

.related-games-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-game-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.related-game-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.related-game-thumb {
    width: 60px;
    height: 40px;
    border-radius: 8px;
    overflow: hidden;
    margin-right: 1rem;
}

.related-game-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-game-info h4 {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.related-game-info span {
    font-size: 0.8rem;
    color: #666;
}

/* 页脚 */
.footer {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .search-container {
        display: none;
    }
    
    .nav-links {
        display: none;
    }
    
    .nav-links.mobile-menu-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        z-index: 999;
        gap: 0.5rem;
    }
    
    .nav-links.mobile-menu-open .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 8px;
        width: 100%;
        text-align: center;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .main-container {
        flex-direction: column;
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .sidebar {
        width: 100%;
        position: static;
        order: 2;
        padding: 1rem;
    }
    
    .sidebar.mobile-hidden {
        display: none;
    }
    
    .sidebar .category-name {
        opacity: 1;
    }
    
    .sidebar .category-item i {
        margin-right: 1rem;
    }
    
    .sidebar .sidebar-header {
        opacity: 1;
    }
    
    .main-content {
        order: 1;
        padding: 1.5rem;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .content-header h1 {
        font-size: 1.5rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }
    
    .game-nav {
        padding: 0 1rem;
        flex-wrap: wrap;
        gap: 1rem;
        position: relative;
    }
    
    .game-nav .nav-links {
        display: none;
    }
    
    .game-nav .nav-links.mobile-menu-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        padding: 1rem;
        z-index: 999;
        gap: 0.5rem;
        min-width: 150px;
    }
    
    .game-nav .nav-links.mobile-menu-open .nav-link {
        color: white;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        text-align: center;
    }
    
    .game-nav .nav-links.mobile-menu-open .nav-link:hover {
        background: rgba(255, 255, 255, 0.2);
        color: #FFD700;
    }
    
    .game-nav .mobile-nav-btn {
        display: block;
    }
    
    .game-title-nav h1 {
        font-size: 1.2rem;
    }
    
    .game-info {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    
    .game-details, .related-games {
        padding: 1.5rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .lightning {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .main-container {
        margin: 1rem auto;
    }
    
    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
    
    .game-and-related-container {
        padding: 0 0.5rem;
    }
    
    .game-container {
        height: 300px; /* 小屏幕：4:3比例，300px高度 */
    }
    
    #game-iframe, #gameFrame {
        width: 400px !important; /* 4:3比例：300 * 4/3 = 400 */
        height: 300px !important;
        max-width: 100%;
        max-height: 100%;
    }
    
    .related-games-sidebar {
        padding: 1rem;
        height: auto;
        max-height: 300px;
    }
    
    .category-item {
        padding: 0.6rem 0.8rem;
    }
    
    .category-name {
        font-size: 0.9rem;
    }
    
    .game-info {
        padding: 0 0.5rem;
    }
}

@media (max-width: 900px) {
    .game-and-related-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .game-container {
        height: 450px; /* 中等屏幕：4:3比例，450px高度 */
    }
    
    #game-iframe, #gameFrame {
        width: 600px !important; /* 4:3比例：450 * 4/3 = 600 */
        height: 450px !important;
        max-width: 100%;
        max-height: 100%;
    }
    
    .related-games-sidebar {
        position: static;
        height: auto;
        max-height: 400px;
        order: 2;
    }
    
    .game-info {
        padding: 0 1rem;
    }
}

/* 平滑过渡 */
* {
    transition: all 0.3s ease;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(74, 144, 226, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 144, 226, 0.8);
}

/* Enhanced Game Content Styles */
.game-section {
    background: #fff;
    border-radius: 12px;
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.game-section h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.game-section h3 i {
    color: #3498db;
}

/* How to Play Styles */
.how-to-play-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.how-to-play-step {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.step-number {
    background: #3498db;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h4 {
    color: #2c3e50;
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
}

.step-content p {
    color: #555;
    margin: 0;
    line-height: 1.6;
}

/* Goals and Scoring Styles */
.goals-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.goal-item {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.goal-item h4 {
    color: #2c3e50;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.goal-item h4 i {
    color: #e74c3c;
}

.goal-item p {
    color: #555;
    margin: 0;
    line-height: 1.6;
}

/* Levels Styles */
.levels-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.level-item {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.level-item h4 {
    color: #2c3e50;
    margin: 0 0 1rem 0;
    font-size: 1.2rem;
}

.level-item p {
    color: #555;
    margin: 0;
    line-height: 1.6;
}

/* Pro Tips Styles */
.pro-tips-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.pro-tip-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: #fff3cd;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.pro-tip-item i {
    color: #ffc107;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.pro-tip-item span {
    color: #856404;
    line-height: 1.6;
}

/* Compatibility Styles */
.compatibility-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.compatibility-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.compatibility-item i {
    color: #3498db;
    font-size: 1.2rem;
}

.compatibility-item span {
    color: #2c3e50;
}

.compatibility-issues {
    padding: 1.5rem;
    background: #f8d7da;
    border-radius: 8px;
    border: 1px solid #f5c6cb;
}

.compatibility-issues h4 {
    color: #721c24;
    margin: 0 0 1rem 0;
}

.compatibility-issues ul {
    margin: 0;
    padding-left: 1.5rem;
}

.compatibility-issues li {
    color: #721c24;
    margin-bottom: 0.5rem;
}

/* FAQ Styles */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question h4 {
    color: #2c3e50;
    margin: 0;
    font-size: 1.1rem;
}

.faq-answer {
    padding: 1rem 1.5rem;
    background: white;
}

.faq-answer p {
    color: #555;
    margin: 0;
    line-height: 1.6;
}

/* Attribution Styles */
.attribution-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.attribution-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.attribution-item i {
    color: #6c757d;
    font-size: 1.1rem;
}

.attribution-item span {
    color: #2c3e50;
}

.attribution-item a {
    color: #3498db;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: color 0.3s ease;
}

.attribution-item a:hover {
    color: #2980b9;
}

/* Responsive adjustments for enhanced content */
@media (max-width: 768px) {
    .game-section {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .how-to-play-step {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .step-number {
        align-self: flex-start;
    }
    
    .goals-content {
        grid-template-columns: 1fr;
    }
    
    .compatibility-info {
        grid-template-columns: 1fr;
    }
    
    .pro-tip-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pro-tip-item i {
        align-self: flex-start;
    }
}

/* Introduction Section Styles */
.intro-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 2.5rem;
    margin: 2rem auto;
    max-width: 1200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    color: white;
    display: block;
}

.intro-section.hidden {
    display: none;
}

.intro-section .intro-content {
    max-width: 100%;
}

.intro-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: white;
    text-align: center;
}

.intro-content > p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.95);
}

.intro-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.feature-item i {
    font-size: 2.5rem;
    color: #FFD700;
    margin-bottom: 1rem;
    display: block;
}

.feature-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.feature-item p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin: 0;
}

.intro-description {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}


@media (max-width: 768px) {
    .intro-section {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .intro-content h2 {
        font-size: 1.5rem;
    }
    
    .intro-content > p {
        font-size: 1rem;
    }
    
    .intro-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .feature-item {
        padding: 1rem;
    }
} 
