/* --- ESTILOS EXCLUSIVOS TEAM GENERATOR --- */
.team-generator-layout {
    display: flex;
    gap: 40px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    align-items: flex-start;
}

.tg-left-panel {
    flex: 0 0 350px;
    width: 100%;
}

.tg-right-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* --- TEMPORIZADOR --- */
.timer-section {
    margin-bottom: 30px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 20px;
}

.timer-display {
    font-family: 'JetBrains Mono', monospace;
    font-size: 3.5rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 0;
    letter-spacing: 2px;
    text-shadow: 0 0 20px #ffbf00, 0 0 40px rgba(255, 191, 0, 0.4);
    transition: color 0.3s ease, text-shadow 0.3s ease;
    line-height: 1;
    background: linear-gradient(180deg, #fff, #ffbf00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 5px rgba(255, 191, 0, 0.5));
}

.timer-display.danger {
    color: #ff4444;
    text-shadow: 0 0 15px rgba(255, 68, 68, 0.6);
}

.timer-buttons-row {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: wrap;
}

.btn-timer {
    background-color: #ffbf00;
    color: #000;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-family: "Russo One", sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Sombra sutil */
}

.btn-timer:hover {
    background-color: #e6ac00;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4); /* Sombra más pronunciada */
}

.btn-timer-danger {
    background-color: #1a1a1a;
    color: #fff;
    border: 1px solid #444;
}

.btn-timer-danger:hover {
    background-color: #f44336;
    border-color: #f44336;
    color: #fff;
}

.btn-timer-outline {
    background-color: transparent;
    border: 1px solid #ffbf00;
    color: #ffbf00;
    padding: 6px 10px;
    border-radius: 6px;
    font-family: "Oswald", sans-serif;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.8rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Sombra sutil */
}

.btn-timer-outline:hover {
    background-color: #ffbf00;
    color: #000;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4); /* Sombra más pronunciada */
}

.custom-time-group {
    display: flex;
    gap: 5px;
}

.custom-time-group input {
    width: 70px;
    background-color: #050505;
    border: 1px solid #333;
    color: #fff;
    padding: 6px;
    border-radius: 6px;
    text-align: center;
    font-family: "Roboto", sans-serif;
}

.generator-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
    background: linear-gradient(145deg, #151515, #0f0f0f);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6),
                0 0 20px rgba(255, 191, 0, 0.1), /* Sombra dorada sutil */
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.generator-input-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.teams-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.generated-team-card {
    background: linear-gradient(180deg, #1c1c1c 0%, #0a0a0a 100%);
    border: 1px solid #2a2a2a;
    border-top: 4px solid #ffbf00; /* CAMBIADO */
    border-radius: 8px;
    border-radius: 12px; /* Ligeramente más redondeado */
    padding: 20px;
    width: 100%;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: cardAppear 0.5s cubic-bezier(
        0.175, 0.885, 0.32, 1.275
    ) backwards;
}

.generated-team-card::after {
    content: '\f132';
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: -10px;
    bottom: -25px; /* Ajuste para que se vea mejor */
    font-size: 7rem;
    color: rgba(255, 255, 255, 0.015); /* Más sutil */
    z-index: 0;
    transform: rotate(-15deg);
    pointer-events: none;
}

.generated-team-card:hover {
    transform: translateY(-8px);
    border-color: #ffbf00;
    box-shadow: 0 12px 30px rgba(255, 191, 0, 0.2); /* Sombra más pronunciada al hover */
}

.generated-team-card h3 {
    font-family: "Russo One", sans-serif;
    color: #ffbf00;
    margin-bottom: 15px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
    text-align: center;
}

.generated-team-card li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    font-family: 'Roboto', sans-serif;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
}

.team-placeholder {
    background-color: rgba(26, 26, 26, 0.3);
    border: 2px dashed #444;
    border-radius: 12px;
    border-radius: 12px; /* Consistencia con las tarjetas generadas */
    width: 100%;
    min-height: 160px;
}

@keyframes cardAppear {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- ROULETTE MODAL ENHANCEMENTS --- */
.modal-overlay {
    backdrop-filter: blur(8px); /* Efecto de cristal más pronunciado para el modal de ruleta */
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    background-color: rgba(26, 26, 26, 0.9); /* Fondo más opaco para el modal */
    border: 1px solid #333;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7); /* Sombra más profunda */
}

.close-modal {
    color: #adadb8; /* Color más suave para el botón de cerrar */
    transition: color 0.2s ease, transform 0.2s ease;
}

.close-modal:hover {
    color: #ff4d4d; /* Rojo al pasar el ratón */
    transform: scale(1.1);
}

#roulette-modal .modal-content {
    /* Aseguramos que el modal-content de la ruleta no tenga fondo ni bordes */
    background-color: transparent;
    border: none;
    box-shadow: none;
}

#roulette-modal .close-roulette-btn {
    background-color: rgba(244, 67, 54, 0.9); /* Fondo más opaco para el botón de cerrar */
    box-shadow: 0 4px 15px rgba(244, 67, 54, 0.4); /* Sombra para el botón */
    transition: all 0.3s ease;
}

#roulette-modal .close-roulette-btn:hover {
    background-color: #f44336;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.6);
}

#wheel-container {
    box-shadow: 0 0 30px rgba(255, 191, 0, 0.6), inset 0 0 15px rgba(255, 191, 0, 0.3); /* Sombra y brillo para la ruleta */
    border-radius: 50%; /* Asegura que la sombra siga la forma circular */
    transition: box-shadow 0.3s ease;
}

#wheel-container:hover {
    box-shadow: 0 0 40px rgba(255, 191, 0, 0.8), inset 0 0 20px rgba(255, 191, 0, 0.5);
}

#wheel-canvas {
    border: 5px solid #ffbf00; /* Borde dorado para la ruleta */
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5); /* Sombra interna para profundidad */
}