* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header h1 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2.2rem;
}

.header-sub {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.header-sub span {
    color: #7f8c8d;
    font-size: 1.1rem;
}

.level-select {
    display: flex;
    align-items: center;
    gap: 10px;
}

.level-select label {
    font-weight: 600;
    color: #2c3e50;
}

.level-select select {
    padding: 8px 15px;
    border: 2px solid #3498db;
    border-radius: 5px;
    background: white;
    font-size: 1rem;
    cursor: pointer;
}

.props-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.prop-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-weight: 600;
}

.prop-btn {
    background: #3498db;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.prop-btn:hover {
    background: #2980b9;
    transform: scale(1.1);
}

.progress {
    background: white;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    flex-grow: 1;
    height: 10px;
    background: #ecf0f1;
    border-radius: 5px;
    overflow: hidden;
    max-width: 300px;
}

.progress-fill {
    height: 100%;
    background: #3498db;
    width: 6.67%;
    transition: width 0.5s;
}

.game-card, .result {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    position: relative;
}

.hint-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #9b59b6;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.hint-btn:hover {
    background: #8e44ad;
}

.hint-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.word-info {
    text-align: center;
    margin-bottom: 20px;
}

.word {
    font-size: 1.6rem;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.pronounce-btn {
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.pronounce-btn:hover {
    background: #c0392b;
    transform: scale(1.1);
}

.phonetic {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.question {
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
    color: #2c3e50;
}

.options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.option {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    border-left: 5px solid transparent;
}

.option:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.option.correct {
    background: #d4edda;
    border-left-color: #28a745;
}

.option.incorrect {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.feedback {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: none;
    text-align: center;
    font-weight: 600;
}

.feedback.correct {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.feedback.wrong {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.controls {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-restart {
    background: #e74c3c;
    color: white;
}

.btn-restart:hover {
    background: #c0392b;
}

.btn-achievement, .btn-store {
    background: #9b59b6;
    color: white;
}

.btn-achievement:hover, .btn-store:hover {
    background: #8e44ad;
}

.result {
    text-align: center;
    display: none;
}

.result h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.result p {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.modal-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-box {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.modal-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #7f8c8d;
}

.modal-body {
    padding: 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.reward-modal-body {
    text-align: center;
}

.reward-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.reward-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
}

.reward-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9rem;
}

.achievement-item {
    padding: 10px 0;
    border-bottom: 1px solid #ecf0f1;
}

.achievement-item.unlocked {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
}

.achievement-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.achievement-desc {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.achievement-locked {
    color: #e74c3c;
}

@media (max-width: 768px) {
    .header-sub {
        flex-direction: column;
        align-items: center;
    }
    
    .progress {
        flex-direction: column;
        text-align: center;
    }
    
    .progress-bar {
        max-width: 100%;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .word {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .game-card, .result {
        padding: 20px;
    }
}