/* 내기게임 전용 스타일 */

/* 게임 카드 그리드 */
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
    padding: 0 8px;
}

/* 게임 카드 */
.game-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 24px;
    color: white;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.game-card.skins {
    background: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
}

.game-card.match {
    background: linear-gradient(135deg, #1976d2 0%, #0d47a1 100%);
}

.game-card.stroke {
    background: linear-gradient(135deg, #f57c00 0%, #e65100 100%);
}

.game-card-icon {
    font-size: 2em;
    margin-bottom: 0;
}

.game-card-title {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 8px;
}

.game-card-description {
    font-size: 0.95em;
    opacity: 0.9;
    line-height: 1.5;
    margin-bottom: 12px;
}

.game-card-features {
    list-style: none;
    padding: 0;
    margin: 12px 0;
}

.game-card-features li {
    font-size: 0.9em;
    opacity: 0.85;
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
}

.game-card-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: bold;
}

.game-card-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    font-size: 1em;
    margin-top: 16px;
    display: block;
    text-align: center;
    text-decoration: none;
}

.game-card-button:hover {
    background: white;
    color: #667eea;
}

/* Disabled state for buttons when games are not ready */
.game-card-button[disabled], .game-card-button[aria-disabled="true"] {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.6);
    color: rgba(255,255,255,0.9);
}

/* 게임 헤더 */
.game-header {
    text-align: center;
    margin: 30px 0;
}

.game-header h1 {
    font-size: 2.5em;
    color: #333;
    margin-bottom: 10px;
}

.game-header p {
    font-size: 1.1em;
    color: #666;
}

/* 게임 상태 배지 */
.game-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    margin-top: 8px;
}

.game-badge.popular {
    background: #FFD700;
    color: #333;
}

.game-badge.new {
    background: #4CAF50;
    color: white;
}

.game-badge.coming-soon {
    background: #999;
    color: white;
}

/* 스코어 입력 화면 (각 게임에서 사용) */
.score-input-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

.score-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.player-name {
    flex: 1;
    font-weight: 600;
    color: #333;
}

.score-input {
    width: 80px;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1.2em;
    text-align: center;
    font-weight: 600;
}

.score-input:focus {
    border-color: #667eea;
    outline: none;
}

/* 게임 결과 표시 */
.game-result {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
}

.game-result h3 {
    margin-bottom: 12px;
}

.winner-display {
    font-size: 2em;
    font-weight: 700;
    margin: 10px 0;
}

/* 반응형 */
@media (max-width: 768px) {
    .game-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 12px;
        margin: 16px 0;
    }
    
    .game-card {
        padding: 20px;
        margin-bottom: 8px;
    }
    
    .game-header {
        margin: 20px 0;
        padding: 0 12px;
    }
    
    .game-header h1 {
        font-size: 2em;
    }
    
    .game-header p {
        font-size: 1em;
    }
}
