/* 스트레스 킬러 부장 | © AI City Builders & Connect AI LAB by Jay */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: #0f0f1a;
    font-family: 'Segoe UI', 'Malgun Gothic', '맑은 고딕', sans-serif;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

#gameCanvas {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    #gameCanvas {
        cursor: default;
    }
}

/* 로딩 화면 */
#loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f0f1a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: opacity 0.5s ease;
}

#loading.hidden {
    opacity: 0;
    pointer-events: none;
}

#loading h1 {
    color: #ffffff;
    font-size: 28px;
    margin-bottom: 15px;
    font-weight: 300;
}

#loading p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(136, 204, 255, 0.2);
    border-top-color: #88ccff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
