/* /public/css/minigames/ping-pong.css */

/**
 * 핑퐁 미니게임 스타일
 */

.ping-pong-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    gap: 1rem;
    max-height: calc(100vh - 150px); /* 뷰포트 높이에 맞춤 */
    overflow-y: auto; /* 필요시 스크롤 */
}

#ping-pong-canvas {
    border: 3px solid var(--surface-light);
    border-radius: 12px;
    background: #1a1a2e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    max-width: 100%;
    height: auto;
    touch-action: none; /* 터치 시 브라우저 기본 동작 방지 */
    user-select: none; /* 텍스트 선택 방지 */
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .ping-pong-container {
        padding: 0.5rem;
        gap: 0.75rem;
    }
    
    #ping-pong-canvas {
        max-width: 100%;
        width: 100% !important;
        height: auto !important;
    }
}

/* 모바일 터치 컨트롤 */
.mobile-controls {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
}

.mobile-control-btn {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 212, 255, 0.7);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.mobile-control-btn:active {
    background: rgba(0, 212, 255, 0.9);
    transform: scale(0.95);
    box-shadow: 0 2px 8px rgba(0, 212, 255, 0.5);
}

.mobile-control-btn i {
    pointer-events: none;
}

@media (max-width: 480px) {
    .mobile-control-btn {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .mobile-controls {
        gap: 15px;
    }
}
