:root {
    --coral-pink: #FF8B8B;
    --mint-green: #7FDFD4;
    --light-bg: #f8f9fa;
}

body {
    background: linear-gradient(135deg, rgba(255, 139, 139, 0.1) 0%, rgba(127, 223, 212, 0.1) 100%);
    min-height: 100vh;
}

.display-4 {
    font-weight: 300;
    letter-spacing: 2px;
    position: relative;
    color: #444;
}

@media (max-width: 768px) {
    .display-4 {
        font-size: 2rem;
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 768px) {
    .display-4 {
        font-size: 1.5rem;
        margin-bottom: 2rem !important;
    }

    .container.py-5 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }

    .card-body {
        padding: 0.75rem !important;
    }

    .card {
        margin-bottom: 0.5rem;
    }

    .text-center.mb-4 img {
        max-width: 150px !important;
    }

    .vs {
        margin: 0.25rem 0 !important;
    }

    .mt-5 {
        margin-top: 1rem !important;
    }

    .mb-5 {
        margin-bottom: 1rem !important;
    }

    .card-text {
        font-size: 0.9rem;
    }

    .percentage {
        font-size: 0.8rem;
    }

    #nextQuestion {
        padding: 0.5rem 2rem !important;
        margin-top: 0.5rem;
    }

    .mt-4 {
        margin-top: 2rem !important;
    }
}

.display-4::after {
    content: "?";
    position: absolute;
    font-size: 3rem;
    opacity: 0.1;
    right: -20px;
    top: -10px;
    transform: rotate(15deg);
}

.game-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    text-align: center;
    color: #555;
    font-size: 2.5em;
    margin-bottom: 40px;
    font-weight: 300;
}

.options-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    margin: 30px 0;
}

.option.card {
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 300px;
    position: relative;
    overflow: hidden;
}

/* Mobile styles */
@media (max-width: 768px) {
    .game-container {
        padding: 1rem;
    }

    .card-text {
        font-size: 1.8rem;
        line-height: 1.3;
        padding: 0.8rem;
    }

    .option.card {
        min-height: 160px;
        margin: 0 auto;
        width: 100%;
        max-width: 400px;
    }

    .vs {
        margin: 0.5rem 0 !important;
        font-size: 2rem !important;
    }

    #nextQuestion {
        width: 100%;
        margin-top: 1rem !important;
        padding: 0.8rem !important;
    }

    .percentage {
        font-size: 1.4rem !important;
    }
}

/* Small mobile devices */
@media (max-width: 375px) {
    .card-text {
        font-size: 1.5rem;
        padding: 0.5rem;
    }

    .option.card {
        min-height: 140px;
    }

    .vs {
        font-size: 1.5rem !important;
    }
}

#optionA.card {
    background: #fff;
    box-shadow: 20px 20px 60px rgba(255, 139, 139, 0.3),
        -20px -20px 60px rgba(255, 255, 255, 0.8);
}

#optionB.card {
    background: #fff;
    box-shadow: 20px 20px 60px rgba(127, 223, 212, 0.3),
        -20px -20px 60px rgba(255, 255, 255, 0.8);
}

.option.card:hover {
    transform: translateY(-10px) scale(1.02);
}

#optionA.card:hover {
    box-shadow: 30px 30px 80px rgba(255, 139, 139, 0.4),
        -30px -30px 80px rgba(255, 255, 255, 0.8);
}

#optionB.card:hover {
    box-shadow: 30px 30px 80px rgba(127, 223, 212, 0.4),
        -30px -30px 80px rgba(255, 255, 255, 0.8);
}

#optionA.selected {
    background: var(--coral-pink) !important;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(255, 139, 139, 0.5) !important;
}

#optionB.selected {
    background: var(--mint-green) !important;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 20px 60px rgba(127, 223, 212, 0.5) !important;
}

.vs {
    font-size: 2.5rem;
    font-weight: 200;
    color: #666;
    position: relative;
}

.vs::before,
.vs::after {
    content: '';
    position: absolute;
    width: 30px;
    height: 2px;
    background: #ddd;
    top: 50%;
    transform: translateY(-50%);
}

.vs::before {
    right: calc(100% + 10px);
}

.vs::after {
    left: calc(100% + 10px);
}

.card-text {
    font-size: 2.4rem;
    line-height: 1.3;
    font-weight: 300;
    position: relative;
    z-index: 1;
    padding: 1rem;
}

.percentage {
    font-size: 1.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transition: all 0.4s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transform: translateY(20px);
}

.option.selected .percentage {
    opacity: 1;
    transform: translateY(0);
}

#nextQuestion {
    background: linear-gradient(135deg, var(--coral-pink), var(--mint-green));
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(127, 223, 212, 0.3);
}

#nextQuestion:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(127, 223, 212, 0.4);
}

/* Game Info Section Styles */
.game-info {
    color: #444;
}

.game-info h2 {
    font-weight: 300;
    letter-spacing: 1px;
    color: #555;
    position: relative;
    padding-left: 20px;
}

.game-info h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: linear-gradient(to bottom, var(--coral-pink), var(--mint-green));
    border-radius: 2px;
}

.game-info article {
    background: #fff;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.05),
        -20px -20px 60px rgba(255, 255, 255, 0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.game-info article:hover {
    transform: translateY(-5px);
    box-shadow: 25px 25px 70px rgba(0, 0, 0, 0.08),
        -25px -25px 70px rgba(255, 255, 255, 0.9);
}

.game-info p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666;
    font-weight: 300;
}

.game-rules ol,
.benefits ul,
.tips ul {
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.game-rules li,
.benefits li,
.tips li {
    font-size: 1.1rem;
    color: #666;
    font-weight: 300;
    margin-bottom: 0.8rem;
    line-height: 1.5;
    position: relative;
}

.benefits li::before,
.tips li::before {
    content: '•';
    color: var(--coral-pink);
    font-weight: bold;
    position: absolute;
    left: -1rem;
}

.game-rules li {
    padding-left: 0.5rem;
}

@media (max-width: 768px) {
    .game-info article {
        padding: 1.5rem;
    }

    .game-info h2 {
        font-size: 1.5rem;
    }

    .game-info p,
    .game-rules li,
    .benefits li,
    .tips li {
        font-size: 1rem;
    }
}

@media (max-width: 375px) {
    .game-info article {
        padding: 1rem;
    }

    .game-info h2 {
        font-size: 1.3rem;
    }
}

/* 手机端导航栏位置自定义 - 移到右下角避免与support me按钮冲突 */
@media (max-width: 768px) {
    .quick-games-bar {
        bottom: 15px !important;
        left: auto !important;
        right: 15px !important;
        transform: none !important;
    }
    
    /* 确保在打开状态下也保持右侧位置 */
    .quick-games-bar.open {
        right: 15px !important;
        left: auto !important;
    }
}