* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #5CBCDE;
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    line-height: 1.6;
    color: #333;
}

.game-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: #333;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #333;
}

h2 {
    margin-bottom: 25px;
    font-size: 2em;
    color: #333;
}

h3 {
    color: #333;
    font-size: 1.5em;
    margin: 20px 0 10px;
}

/* 设置界面样式 */
.setup-screen {
    background-color: rgba(255, 255, 255, 0.497);
    padding: 35px;
    border-radius: 15px;
    margin-bottom: 25px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.setup-screen:hover {
    transform: translateY(-5px);
}

.setup-options {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.setup-options label {
    margin: 0;
    font-size: 1.1em;
    color: #333;
    white-space: nowrap;
}

.player-setup {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.select-input {
    flex: 1;
    padding: 10px;
    font-size: 1.1em;
    border-radius: 8px;
    border: 2px solid #333;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    max-width: 150px;
}

.select-input:hover {
    background-color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

/* 游戏界面样式 */
.game-area {
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.card-display {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 25px 0;
}

.current-card {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    min-width: 250px;
    text-align: center;
}

.controls {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 28px;
    font-size: 1.15em;
    background: linear-gradient(135deg, #FFA500 0%, #FFA500 100%);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background: linear-gradient(135deg, #FF8C00 0%, #FF8C00 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(1px);
}

.btn:disabled {
    background: linear-gradient(135deg, #cccccc 0%, #bbbbbb 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.player-info {
    font-size: 1.3em;
    padding: 15px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    margin: 20px 0;
}

.player-info p {
    margin: 12px 0;
    transition: color 0.3s ease;
}



/* 规则页面样式 */
.rules-section {
    max-width: 800px;
    margin: 45px auto 25px;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.497);
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    border-top: 3px solid #FEDC01;
    color: #333;
    transition: transform 0.3s ease;
}

.rules-section:hover {
    transform: translateY(-5px);
}

.rules-section h2 {
    color: #333;
    text-align: center;
    margin-bottom: 25px;
    font-size: 2em;
    position: relative;
}

.rules-section h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: #FEDC01;
    margin: 15px auto 0;
}

.rules-section h3 {
    color: #333;
    margin: 25px 0 15px;
    font-size: 1.5em;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 8px;
}

.rules-content {
    padding: 0 25px;
    text-align: left;
    color: #333;
}

.rules-content p {
    line-height: 1.8;
    margin-bottom: 18px;
}

.rules-content ol,
.rules-content ul {
    padding-left: 25px;
    margin-bottom: 25px;
}

.rules-content li {
    margin-bottom: 12px;
    line-height: 1.7;
    color: #333;
    position: relative;
}

.rules-content ul li {
    list-style-type: none;
    padding-left: 20px;
}

.rules-content ul li:before {
    content: '•';
    color: #FEDC01;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.rules-content ol li {
    list-style-type: decimal;
    padding-left: 10px;
}

.logo {
    max-width: 200px;
    height: auto;
    margin: 20px auto;
    display: block;
}

@media screen and (max-width: 768px) {
    body {
        padding: 10px;
    }

    .game-container {
        padding: 10px;
    }

    h1 {
        font-size: 2em;
        margin-bottom: 10px;
    }

    .subtitle {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .setup-screen {
        padding: 20px;
    }

    .player-setup {
        flex-direction: column;
        gap: 10px;
    }

    .select-input {
        width: 100%;
        max-width: none;
    }

    .btn {
        width: 100%;
        padding: 15px;
        font-size: 1.1em;
        margin: 5px 0;
    }

    .card-display {
        display: flex;
        justify-content: center;
        align-items: center;
        margin: 15px auto;
        width: 100%;
    }

    .current-card {
        width: 90%;
        min-width: auto;
        padding: 20px;
        margin: 0 auto;
    }

    .controls {
        flex-direction: column;
        gap: 10px;
    }

    .rules-section {
        padding: 15px;
    }

    .rules-content {
        text-align: left;
    }

    .rules-content h3 {
        font-size: 1.3em;
        margin: 15px 0 8px;
    }

    .rules-content p, 
    .rules-content li {
        font-size: 1em;
        margin-bottom: 8px;
    }

    .logo {
        width: 150px;
        height: auto;
    }
}

/* 手机端导航栏位置自定义 - 移到右下角避免与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;
    }
}