#marcador-app {
    border: 1px solid #ccc;
    padding: 15px;
    max-width: 800px;
    margin: auto;
}

.ronda {
    background: #f9f9f9;
    padding: 10px;
    margin-bottom: 10px;
}

.ronda input {
    margin: 5px;
    width: 60px;
}

/* Botones de compartir */
#botones-compartir {
    margin-top: 20px;
    text-align: center;
}

#botones-compartir button {
    margin: 5px;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#compartir_instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
}

#compartir_instagram:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

#generar_imagen {
    background: #4CAF50;
    color: white;
}

#generar_imagen:hover {
    background: #45a049;
}

#compartir_generico {
    background: #008CBA;
    color: white;
}

#compartir_generico:hover {
    background: #007B9A;
}

/* Vista para compartir - Diseño tipo Strava */
#share-result {
    width: 1080px;
    height: 1920px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 40px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    box-sizing: border-box;
    position: relative;
    display: flex;
    flex-direction: column;
    margin: 20px auto;
}

.share-header {
    text-align: center;
    margin-bottom: 80px;
}

.share-header .logo {
    font-size: 120px;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.share-header h1 {
    font-size: 72px;
    font-weight: 900;
    margin: 0;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    letter-spacing: -2px;
}

.share-header .fecha {
    font-size: 28px;
    opacity: 0.9;
    margin-top: 20px;
    font-weight: 300;
}

.share-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ranking-title {
    text-align: center;
    margin-bottom: 60px;
}

.ranking-title h2 {
    font-size: 48px;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.ranking-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.ranking-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease;
}

.ranking-item.winner {
    background: rgba(255, 215, 0, 0.25);
    border: 2px solid rgba(255, 215, 0, 0.5);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

.ranking-item:hover {
    transform: translateY(-2px);
}

.position {
    font-size: 48px;
    font-weight: 700;
    margin-right: 30px;
    min-width: 80px;
    text-align: center;
}

.player-info {
    flex: 1;
}

.player-name {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 8px;
}

.player-score {
    font-size: 28px;
    opacity: 0.9;
    font-weight: 300;
}

.share-footer {
    margin-top: 60px;
}

.stats {
    display: flex;
    justify-content: space-around;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #FFD700;
}

.stat-label {
    font-size: 20px;
    opacity: 0.9;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    #share-result {
        width: 720px;
        height: 1280px;
        padding: 40px 30px;
    }

    .share-header .logo {
        font-size: 80px;
    }

    .share-header h1 {
        font-size: 48px;
    }

    .share-header .fecha {
        font-size: 20px;
    }

    .ranking-title h2 {
        font-size: 36px;
    }

    .ranking-item {
        padding: 20px;
    }

    .position {
        font-size: 36px;
        min-width: 60px;
        margin-right: 20px;
    }

    .player-name {
        font-size: 28px;
    }

    .player-score {
        font-size: 22px;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-label {
        font-size: 16px;
    }
}
