:root {
    --primary-yellow: #FFD700;
    --primary-red: #FF4B4B;
    --primary-blue: #4BA3FF;
    --black: #333;
    --background: #FFFFFF;
}

body {
    background-color: var(--background);
    min-height: 100vh;
    display: flex;
    align-items: center;
    font-family: 'Comic Neue', 'Comic Sans MS', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

.game-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background-color: white;
    border-radius: 25px;
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
    border: 3px solid var(--black);
    position: relative;
    overflow: hidden;
}

/* Decorative circles */
.game-container::before,
.game-container::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    z-index: 0;
}

.game-container::before {
    background-color: var(--primary-red);
    top: -20px;
    left: -20px;
}

.game-container::after {
    background-color: var(--primary-blue);
    bottom: -20px;
    right: -20px;
}

h1, .question-text {
    font-size: 1.8rem;
    color: var(--black);
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    font-family: 'Comic Neue', 'Comic Sans MS', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

h1::after {
    content: '😊';
    position: absolute;
    font-size: 2.5rem;
    margin-left: 10px;
}

.question-card {
    margin-top: 2rem;
    position: relative;
}

.card {
    border: 3px solid var(--black);
    border-radius: 20px;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.1);
    padding: 2rem;
    background-color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
}

.choice-buttons,
.difficulty-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.choice-btn {
    position: relative;
    padding: 1rem 2rem;
    min-width: 150px;
    border: 3px solid var(--black);
    transform-origin: center;
    transition: all 0.2s ease;
    animation: pulse 2s infinite;
    font-family: 'Comic Neue', 'Comic Sans MS', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

.choice-btn:hover {
    transform: scale(1.05);
    animation: none;
}

.choice-btn:active {
    transform: scale(0.95);
}

.choice-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.choice-text {
    display: block;
    font-weight: bold;
    font-size: 1.2rem;
}

.question-text {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--black);
    margin: 1rem 0;
}

.truth-btn {
    background-color: var(--primary-blue);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
}

.dare-btn {
    background-color: var(--primary-red);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
}

.truth-btn:hover {
    background-color: #3994ff;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
}

.dare-btn:hover {
    background-color: #e63e3e;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
}

.truth-btn:active,
.dare-btn:active {
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

.soft-btn {
    background-color: var(--primary-blue);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
    color: white;
}

.spicy-btn {
    background-color: var(--primary-red);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
    color: white;
}

.soft-btn:hover {
    background-color: #3994ff;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
}

.spicy-btn:hover {
    background-color: #e63e3e;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.2);
}

.soft-btn:active,
.spicy-btn:active {
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

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

#questionText {
    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--black);
}

.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#nextButton {
    min-width: 200px;
    border: 3px solid var(--black);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
    font-weight: bold;
}

#nextButton:hover {
    transform: translateY(-2px);
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.1);
}

#nextButton:active {
    transform: translateY(0);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.controls .btn-success {
    background-color: var(--primary-yellow);
    color: var(--black);
    border: 3px solid var(--black);
    font-weight: bold;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.controls .btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.1);
}

.game-logo {
    width: 180px;
    height: 180px;
    margin-bottom: 1rem;
    animation: floatAnimation 3s ease-in-out infinite;
}

@keyframes floatAnimation {
    0% {
        transform: translateY(0);
    }

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

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

.logo-container {
    margin-bottom: 2rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.question-card .card {
    animation: fadeIn 0.5s ease;
}

.rules-section .card {
    border: 3px solid var(--black);
    border-radius: 15px;
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
}

.rules-section h3 {
    color: var(--black);
    font-weight: bold;
}

.rules-section ol {
    padding-left: 1.5rem;
}

.rules-section li {
    margin-bottom: 0.5rem;
    color: var(--black);
}

.btn-primary {
    background-color: var(--primary-blue);
    border: 2px solid var(--black);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: #3994ff;
    transform: translateY(1px);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.selected-type,
.selected-difficulty {
    font-size: 1.2rem;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    background: rgba(0, 0, 0, 0.05);
}

#backButton {
    border: 2px solid var(--black);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

#backButton:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
}

#backButton:active {
    transform: translateY(0);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

.truth-text {
    color: var(--primary-blue);
}

.dare-text {
    color: var(--primary-red);
}

#resetButton {
    border: 2px solid var(--black);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

#resetButton:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
}

#resetButton:active {
    transform: translateY(0);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}

/* 移动端响应式设计 */
@media screen and (max-width: 768px) {
    .container {
        padding: 0;
        margin: 0;
        max-width: 100%;
    }
    
    .game-container {
        margin: 0.5rem 0.5rem;
        padding: 1rem;
        border-radius: 15px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .choice-buttons,
    .difficulty-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .choice-btn {
        width: 100%;
        min-width: auto;
    }

    .card {
        padding: 1rem;
    }

    .question-text {
        font-size: 1.1rem;
        line-height: 1.4;
    }

    .rules-section {
        font-size: 0.9rem;
    }

    .rules-section ol {
        padding-left: 1.5rem;
    }

    .rules-section li {
        margin-bottom: 0.5rem;
    }
}

/* 特小屏幕设备优化 */
@media screen and (max-width: 320px) {
    h1 {
        font-size: 1.3rem;
    }

    .choice-btn {
        padding: 0.8rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .game-container {
        margin: 1rem;
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    .choice-buttons button {
        width: 100%;
        margin-bottom: 1rem;
        font-size: 1.2rem;
    }

    #questionText {
        font-size: 1.2rem;
    }
}

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