body {
    background: radial-gradient(circle, #1e293b 0%, #0f172a 100%);
    color: white;
    font-family: 'Inter', system-ui, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    overflow: hidden;
}

.game-container { position: relative; width: 480px; text-align: center; }

.stats-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    color: #38bdf8;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.mute-btn {
    cursor: pointer;
    background: rgba(56, 189, 248, 0.1);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 1.2rem;
    transition: 0.2s;
}

.mute-btn:hover { background: rgba(56, 189, 248, 0.3); }

canvas {
    background: #000;
    border: 3px solid #334155;
    border-radius: 16px;
    box-shadow: 0 0 50px rgba(0,0,0,0.6);
}

/* Modal System */
.modal {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    z-index: 100;
}

.modal.active { display: flex; }

.modal-content {
    background: #1e293b;
    padding: 40px;
    border-radius: 32px;
    border: 1px solid rgba(56, 189, 248, 0.3);
    text-align: center;
    min-width: 320px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.title-neon {
    font-size: 2.2rem;
    background: linear-gradient(to bottom, #fff, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 15px 0;
}

.instruction-box {
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 25px;
    color: #94a3b8;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.fail-text { color: #f43f5e; margin-bottom: 20px; font-size: 1.8rem; }

.stats-grid {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.stat-box {
    background: rgba(0,0,0,0.2);
    padding: 15px 20px;
    border-radius: 12px;
    flex: 1;
}

.stat-box small { display: block; color: #64748b; font-size: 0.7rem; margin-bottom: 5px; }
.stat-box span { font-size: 1.3rem; color: #38bdf8; font-weight: 800; }

.btn-primary {
    background: #38bdf8;
    color: #0f172a;
    border: none;
    padding: 14px 35px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-primary:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(56, 189, 248, 0.4); }

.credits { margin-top: 20px; color: #475569; font-size: 0.8rem; }
.credits strong { color: #38bdf8; }

/* ใส่เพิ่มลงในไฟล์ style.css */
.game-logo {
    width: 100%;          /* ปรับความกว้างให้เต็มกรอบ Modal */
    max-width: 350px;     /* จำกัดขนาดไม่ให้ใหญ่เกินไป */
    height: auto;
    border-radius: 15px;  /* ทำขอบมนให้เข้ากับดีไซน์ */
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.5); /* เพิ่มแสงเรืองแสงรอบรูป */
    border: 2px solid rgba(56, 189, 248, 0.3);
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}
