/* css/style.css */
:root {
    --primary: #4ecdc4;
    --accent: #ff6b6b;
    --bg: #f7f9fc;
    --active-color: #2980b9;
}
body {
    font-family: 'Comic Sans MS', 'Microsoft YaHei', sans-serif;
    background-color: var(--bg);
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    user-select: none;
    overflow-x: hidden;
    overscroll-behavior: none; 
}
/* 按钮和通用组件 */
.btn-check { pointer-events: auto; background-color: var(--primary); color: white; font-size: 20px; border: none; padding: 10px 40px; border-radius: 50px; cursor: pointer; box-shadow: 0 4px #3dbbb3; border: 2px solid white; transition: all 0.2s; }
.btn-check:active { transform: translateY(3px); box-shadow: 0 1px #3dbbb3; }
.feedback-area { height: 30px; line-height: 30px; text-align: center; font-size: 18px; font-weight: bold; color: var(--primary); margin-top: 5px; }

/* 游戏舞台 (子页面用) */
.game-wrapper {
    position: relative;
    width: 360px;  
    height: 580px; 
    background: white;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin: 10px auto;
    overflow: hidden; 
}

/* 动画定义 */
@keyframes pop { 0% { transform: scale(0); } 80% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes shake { 0%, 100% {transform: translateX(0);} 25% {transform: translateX(-5px);} 75% {transform: translateX(5px);} }
.pop-anim { animation: pop 0.4s ease forwards; display: inline-block; }

/* 适配小屏幕 */
@media (max-width: 380px) {
    .game-wrapper { transform: scale(0.9); margin-top: 0; }
}