* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}
#game-container {
    width: 100vw;
    height: 100vh;
    max-width: 800px;
    max-height: 600px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.screen {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    text-align: center;
}
#start-screen h1 { font-size: 3rem; color: #667eea; margin-bottom: 20px; }
#start-screen p { font-size: 1.5rem; color: #666; margin-bottom: 30px; }
.game-btn {
    padding: 15px 40px;
    font-size: 1.3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}
.game-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(102, 126, 234, 0.6); }
.game-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 15px 20px;
    font-size: 1.2rem;
    font-weight: bold;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
}
.question-display { margin-bottom: 30px; }
.number-display {
    font-size: 5rem;
    font-weight: bold;
    color: #667eea;
    margin-bottom: 20px;
}
.objects-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.object-item {
    font-size: 3rem;
    animation: bounce 0.5s ease infinite;
}
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
#question-text { font-size: 1.5rem; color: #666; }
.options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
    max-width: 400px;
}
.option-btn {
    padding: 20px 30px;
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}
.option-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(102, 126, 234, 0.6); }
.option-btn.correct { animation: correctAnim 0.5s ease; }
.option-btn.wrong { animation: wrongAnim 0.5s ease; }
@keyframes correctAnim { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
@keyframes wrongAnim { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-10px); } 75% { transform: translateX(10px); } }
.feedback {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    font-weight: bold;
    pointer-events: none;
    opacity: 0;
    z-index: 100;
}
.feedback.show { animation: feedbackAnim 1s ease forwards; }
@keyframes feedbackAnim {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1); }
}
#end-screen h1 { font-size: 3rem; color: #f5576c; margin-bottom: 20px; }
#end-screen p { font-size: 1.3rem; color: #666; margin-bottom: 15px; }
.final-score { font-size: 2rem !important; color: #667eea !important; font-weight: bold; }
@media (max-width: 768px) {
    #start-screen h1 { font-size: 2rem; }
    .number-display { font-size: 3rem; }
    .object-item { font-size: 2rem; }
    .options { grid-template-columns: 1fr; }
}
