/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    
}

:root {
    --primary-color: #3a86ff;
    --secondary-color: #00b4d8;
    --dark-color: #0a1128;
    --light-color: #f8f9fa;
    --accent-color: #6c63ff;
    --text-color: #2b2d42;
    --text-light: #6c757d;
    --border-color: #dee2e6;
    --success-color: #06d6a0;
    --warning-color: #ffbe0b;
    --danger-color: #ef476f;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-dark: linear-gradient(135deg, var(--dark-color), #1f2937);
    --box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

body, html {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #0a1128 !important; /* 直接使用颜色值并添加!important确保应用 */
    margin: 0;
    padding: 0;
    min-height: 100%;
    width: 100%;
}

/* 主布局样式 */
.main-container {
    display: flex;
    position: relative;
    min-height: 100vh;
    padding-top: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: transparent; /* 确保主容器不添加颜色 */
}

/* 左侧内容区样式 */
.left-content {
    flex: 1;
    padding: 30px;
    margin-right: 52%; /* 为右侧栏留出空间，稍微多于50%给padding */
    /* 移除背景色 */
    border-radius: 8px;
    color: white; /* 确保文字在深色背景上可见 */
    display: block; /* 改为块级元素，不使用flex居中 */
    text-align: left; /* 文字靠左对齐 */
    height: auto; /* 自适应高度 */
}

/* Hero容器样式 */
.hero-container {
    max-width: 600px;
    min-height: 90vh; /* 最小高度为视口高度的90% */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    /* 确保容器之间有足够的间距 */
    margin-bottom: 30vh; /* 增加底部间距，防止过早看到下一个容器 */
}

/* 添加向下滚动指示器 */
.hero-container::after {
    content: '\2193'; /* 向下箭头 */
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--secondary-color);
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

.hero-container h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* 段落样式 */
.intro-text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 12px;
    color: white;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.description-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 90%;
}

.features-box {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 15px 20px;
    margin-bottom: 25px;
    border-left: 3px solid var(--primary-color);
}

.features-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--secondary-color);
    letter-spacing: 0.5px;
}

.hero-container .highlight {
    color: var(--secondary-color);
    font-weight: 600;
}

.hero-container ul {
    margin-bottom: 5px;
    padding-left: 20px;
}

.hero-container li {
    font-size: 0.85rem;
    margin-bottom: 6px;
    color: var(--light-color);
}

.button-container {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.play-now-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 20px;
    background: var(--gradient-primary);
    border-radius: 4px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(58, 134, 255, 0.2);
}

.play-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(58, 134, 255, 0.3);
}

.card:hover {
    /* 悬停时向上浮动并增大阴影 */
    transform: rotateY(180deg) translateY(-15px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
    z-index: 100 !important;
}

.learn-more-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 9px 20px;
    background: transparent;
    border: 1px solid white;
    border-radius: 4px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.learn-more-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* 右侧固定栏样式 */
.right-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 50%;
    height: 100vh;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    perspective: 1000px; /* 为3D效果添加透视 */
}

/* 卡牌容器样式 */
.cards-container {
    position: relative;
    width: 500px; /* 设置明确的宽度 */
    height: 600px; /* 增加高度以更好地容纳多组扇形 */
    perspective: 1500px;
    transform-style: preserve-3d;
    margin: 0 auto;
    overflow: visible;
    /* 添加调试指示边框，可以通过注释掉以移除 */
    /* border: 1px dashed rgba(255, 255, 255, 0.1); */
}

/* 卡牌基本样式 */
.card {
    position: absolute; /* 关键: 使用绝对定位 */
    width: 100px;  /* 卡牌宽度 */
    height: 150px; /* 卡牌高度 */
    transition: transform 0.5s ease, opacity 0.5s ease;
    transform-style: preserve-3d;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    opacity: 0; /* 初始不可见 */
    transform: rotateY(0deg);
    transform-origin: center center;
    cursor: pointer;
    /* 移除调试边框 */
    /* 确保卡牌不会被其他元素隐藏 */
    z-index: 10;
    /* 默认居中位置 - 这个会被 JavaScript 覆盖 */
    left: 50%;
    top: 50%;
    margin-left: -50px; /* 一半宽度 */
    margin-top: -75px;  /* 一半高度 */
}

/* 当卡牌可见时的样式 */
.card.visible {
    opacity: 1;
    transition: opacity 0.3s ease-in-out, transform 0.5s ease;
}

/* 当卡牌翻转时的样式 */
.card.flipped {
    /* 只需要翻转，位置由绝对定位控制 */
    transform: rotateY(180deg);
}

/* 初始卡牌样式 */
.card-initial {
    opacity: 1;
    z-index: 10;
}
/* 卡牌内部样式 */
.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border-radius: 10px;
    overflow: hidden;
}

/* 卡牌正面和背面共同样式 */
.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

/* 卡牌背面样式 - 经典的红色背面花纹 */
.card-back {
    background: #b71c1c;
    transform: rotateY(180deg);
}

.card-pattern {
    width: 90%;
    height: 90%;
    background-image: repeating-linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 0px,
        rgba(255, 255, 255, 0.15) 5px,
        rgba(178, 34, 34, 0.8) 5px,
        rgba(178, 34, 34, 0.8) 10px
    );
    border-radius: 5px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

/* 卡牌正面样式 - 白色背景 */
.card-front {
    background: #ffffff;
    padding: 5px;
}

.card-value {
    font-family: 'Times New Roman', serif;
    font-weight: bold;
    font-size: 2rem;
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5px 10px;
}

.suit {
    color: #d81b60;
    font-size: 2.5rem;
    margin-left: 5px;
}

/* 卡牌扇形排列的角度计算 */
/* 我们不再使用静态的位置，而是通过JavaScript动态计算 */
/* 保留这些选择器作为备用 */
.card.fan-position {
    opacity: 1;
    /* 扇形排列的基本变形将由JavaScript设置 */
}

/* 卡牌悬停效果 - 修改为不影响卡牌排列 */
.card:hover {
    /* 只改变z-index和阴影，不修改位置 */
    z-index: 500 !important;
    transition: all 0.3s ease;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.5);
}

/* 技能型游戏部分样式 */
.skill-gaming-container {
    max-width: 600px;
    min-height: 90vh; /* 最小高度为视口高度的90% */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 10px;
    padding-bottom: 40px;
    position: relative;
    /* 确保容器之间有足够的间距 */
    margin-top: 30vh; /* 增加顶部间距，防止过早看到上一个容器 */
    margin-bottom: 30vh; /* 增加底部间距，防止过早看到下一个容器 */
}

/* Professional Gaming Platform 样式 */
.professional-platform {
    max-width: 600px;
    min-height: 70vh; /* 比skill-gaming-container稍少一点高度 */
    display: flex;
    flex-direction: column;
    padding: 30px 0;
    position: relative;
    margin-top: 30% ; /* 增加与上一个部分的间距 */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.professional-platform h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.professional-platform h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.platform-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 25px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.platform-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.platform-content p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--light-color);
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.platform-features {
    list-style: none;
    margin-top: 10px;
}

.platform-features li {
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding-left: 28px;
    transition: all 0.2s ease;
}

.platform-features li:hover {
    transform: translateX(5px);
    color: rgba(255, 255, 255, 1);
}

.platform-features li::before {
    content: '\2713';  /* 对勾符号 */
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-size: 1.1rem;
    line-height: 1;
    background: rgba(6, 214, 160, 0.1);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 8px rgba(6, 214, 160, 0.3);
    transition: all 0.2s ease;
}

.platform-features li:hover::before {
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(6, 214, 160, 0.4);
}

.platform-cta {
    margin-top: 30px;
    text-align: center;
}

.platform-btn {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 12px 24px;
    background: var(--gradient-primary);
    border-radius: 30px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 133, 255, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.platform-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
    z-index: -1;
}

.platform-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 133, 255, 0.4);
}

.platform-btn:hover::before {
    left: 100%;
}

/* 添加向下滚动指示器，如果还有更多内容 */
.skill-gaming-container::after {
    content: '\2193'; /* 向下箭头 */
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    color: var(--secondary-color);
    animation: bounce 1.5s infinite;
}

.skill-gaming-container h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--light-color);
    position: relative;
    display: inline-block;
}

.skill-gaming-container h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.skill-content {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 25px;
    flex: 1;
    align-items: center;
    padding: 20px;
    background: rgba(58, 134, 255, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.skill-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    background: rgba(58, 134, 255, 0.08);
}

.skill-text {
    flex: 1;
    min-width: 300px;
    position: relative;
    padding-right: 15px;
}

.skill-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.skill-list {
    list-style: none;
    padding-left: 0;
}

.skill-list li {
    font-size: 0.88rem;
    margin-bottom: 14px;
    color: var(--light-color);
    position: relative;
    padding-left: 24px;
    transition: transform 0.2s ease;
}

.skill-list li:hover {
    transform: translateX(3px);
}

.skill-list li::before {
    content: '\2022';  /* 圆点符号 */
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-size: 1.2rem;
    line-height: 1;
    text-shadow: 0 0 3px rgba(0, 180, 216, 0.3);
}

.skill-highlight {
    color: var(--secondary-color);
    font-weight: 600;
    position: relative;
    padding: 0 2px;
}

.skill-highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 180, 216, 0.2);
    border-radius: 1px;
    z-index: -1;
}

.skill-quote {
    flex: 1;
    min-width: 250px;
    display: flex;
    align-items: center;
    position: relative;
}

.skill-quote::before {
    content: '\201C'; /* 左引号 */
    position: absolute;
    top: -20px;
    left: 10px;
    font-size: 3rem;
    color: rgba(0, 180, 216, 0.2);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: 0;
}

.skill-quote blockquote {
    font-size: 1rem;
    font-style: italic;
    color: var(--light-color);
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
    margin: 0;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
}

.skill-quote blockquote:hover {
    transform: translateY(-3px) translateX(2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.skill-progress {
    margin-top: 20px;
}

.progress-item {
    margin-bottom: 15px;
}

.progress-label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 5px;
    color: var(--light-color);
    font-weight: 500;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 1s ease;
}

/* 添加滚动动画效果 */
.skill-gaming-container {
    opacity: 1; /* 默认可见 */
    transform: translateY(0); /* 默认不偏移 */
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* 保留类名供未来使用 */
.skill-gaming-container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    
    .left-content {
        margin-right: 0;
        margin-bottom: 200px; /* 为底部固定栏留出空间 */
    }
    
    .right-sidebar {
        top: auto;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 180px;
        border: none !important; /* 移除所有边框 */
        box-shadow: none !important; /* 移除阴影 */
    }
}

/* Ready to Test Your Skills Section Styles */
.skills-test-container {
    max-width: 600px;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    margin-top: 30%; /* Add margin to separate from professional-platform section */
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.skills-test-container h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
    position: relative;
    display: inline-block;
}

.skills-test-container h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.skills-test-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: var(--light-color);
}

.skills-test-options {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.test-option {
    flex: 1;
    min-width: 150px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s ease;
    border-left: 3px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.test-option:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.option-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 180, 216, 0.3);
}

.test-option h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--light-color);
    font-weight: 600;
}

.test-option p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    border-bottom: none;
}

/* u6e38u620fu622au56feu753bu5ecau6837u5f0f */
.gameplay-gallery {
    max-width: 600px;
    margin: 50px 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 25px;
    border-left: 3px solid var(--primary-color);
    box-shadow: var(--card-shadow);
}

.gameplay-gallery h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-align: center;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
}

.gameplay-image {
    width: 100%;
    height: 130px;
    object-fit: cover;
    border-radius: 8px 8px 0 0;
    border-bottom: 2px solid var(--primary-color);
}

.image-caption {
    padding: 12px;
    font-size: 0.8rem;
    color: var(--light-color);
    text-align: center;
    background: rgba(10, 17, 40, 0.8);
}

/* u54cdu5e94u5f0fu8c03u6574 */
@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .gameplay-image {
        height: 180px;
    }
}

.test-option p {
    padding-bottom: 0;
}

.skills-test-cta {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.skills-test-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 12px 24px;
    background: var(--gradient-primary);
    border-radius: 4px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(58, 134, 255, 0.2);
}

.skills-test-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(58, 134, 255, 0.3);
}

.skills-learn-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--secondary-color);
    border-radius: 4px;
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.skills-learn-btn:hover {
    background: rgba(0, 180, 216, 0.1);
    transform: translateY(-2px);
}

/* FAQ Section Styles */
.faq-container {
    max-width: 600px;
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    margin-top: 30% ;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-container h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.faq-container h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 3px;
}

.faq-content p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: var(--light-color);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    border-left: 3px solid var(--primary-color);
}

.faq-question {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.08);
}

.question-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--light-color);
}

.faq-icon {
    font-size: 1.2rem;
    color: var(--secondary-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 15px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 20px 20px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-more {
    text-align: center;
    margin-top: 20px;
}

.faq-more-btn {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.faq-more-btn:hover {
    background: rgba(58, 134, 255, 0.1);
    transform: translateY(-2px);
}

/* Right sidebar with highest Rummy hand */
.right-sidebar {
    position: fixed;
    top: 50%;
    right: 0;
    width: 50%;
    transform: translateY(-50%);
    z-index: 1;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    max-height: 90vh;
    pointer-events: none; /* This allows scrolling through the sidebar */
    transition: top 0.3s ease;
}

/* Ensure the footer doesn't overlap with other content */
footer, .footer {
    position: relative;
    z-index: 10; /* Higher than sidebar */
    background-color: var(--dark-color); /* Ensure footer has a background */
}

/* Make the hand container receive pointer events */
.highest-hand-container {
    pointer-events: auto;
}

.highest-hand-container {
    width: 80%;
    max-width: 450px;
    background: transparent;
    border-radius: 12px;
    padding: 25px;
    transition: all 0.3s ease;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.highest-hand-container h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
    text-shadow: 0 0 10px rgba(58, 134, 255, 0.3);
}

.highest-hand-description {
    text-align: center;
    color: var(--light-color);
    font-size: 0.9rem;
    margin-bottom: 25px;
    
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rummy-hand {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.card-meld {
    display: flex;
    justify-content: center;
    gap: 10px;
    position: relative;
    padding: 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.3s ease;
}

.card-meld:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
}

.card-meld::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    height: calc(100% - 10px);
    width: 3px;
    border-radius: 3px;
}

.pure-sequence::before {
    background: var(--success-color);
}

.set::before {
    background: var(--primary-color);
}

.set-with-joker::before {
    background: var(--warning-color);
}

.rummy-card {
    width: 70px;
    height: 100px;
    perspective: 1000px;
    position: relative;
    transition: all 0.3s ease;
    cursor: pointer;
}

.rummy-card:hover {
    transform: translateY(-10px) scale(1.05);
    z-index: 10;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.rummy-card .card-inner {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.rummy-card .card-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    color: var(--dark-color);
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.rummy-card .card-value {
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
}

.rummy-card .suit {
    font-size: 1.5rem;
    position: relative;
    top: 2px;
}

.rummy-card.joker .card-front {
    background: linear-gradient(135deg, #ffbe0b, #fb5607);
}

.rummy-card.joker .card-value {
    font-size: 0.9rem;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.hand-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: rgba(58, 134, 255, 0.1);
    border-radius: 8px;
    margin-top: 5px;
}

.score-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--light-color);
}

.score-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--success-color);
    text-shadow: 0 0 5px rgba(6, 214, 160, 0.3);
}
