.tl-container {
    max-width: 650px;
    margin: 20px auto;
    padding: 25px;
    background: #110d1a;
    color: #e2dcf0;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
	font-family: inherit;
    text-align: center;
}
.tl-container h2 {
    color: #bfa3ff;
    margin-bottom: 10px;
}
.tl-instruction {
    font-size: 14px;
    color: #a29bb3;
    margin-bottom: 20px;
}
.tl-deck {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}
.tl-card-wrapper {
    aspect-ratio: 2/3;
    background: #251b35;
    border: 2px solid #44315f;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    user-select: none;
	transition: transform 0.2s ease-in-out, border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.tl-card-wrapper:hover {
    transform: translateY(-3px);
    border-color: #bfa3ff;
}
.tl-card-wrapper.selected {
    background: #5c3d99;
    border-color: #d1bfff;
    box-shadow: 0 0 12px #bfa3ff;
    transform: scale(1.05);
}
.tl-control-group {
    margin-bottom: 20px;
}
.tl-control-group select {
    padding: 8px;
    background: #1c142a;
    color: #fff;
    border: 1px solid #44315f;
    border-radius: 4px;
}
.tl-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#tl-submit-btn, #tl-reset-btn {
    width: 100%;
    padding: 12px;
    font-weight: bold;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}
#tl-submit-btn {
    background: #3b2d54;
    color: #796a91;
}
#tl-submit-btn.ready {
    background: #8a5cf5;
    color: #fff;
}
#tl-submit-btn.ready:hover {
    background: #a17fff;
}
#tl-reset-btn {
    background: #2b223a;
    color: #bfa3ff;
    border: 1px solid #44315f;
}
#tl-reset-btn:hover {
    background: #1c142a;
}
.tl-results-box {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px dashed #44315f;
}
.tl-revealed-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}
/* Forza le 3 carte estratte a stare una di fianco all'altra con uno spazio armonioso */
.tl-mini-cards-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 20px; /* Spazio orizzontale tra una carta e l'altra */
    margin: 20px 0;
    flex-wrap: wrap; /* Permette di andare a capo solo sui telefoni molto piccoli */
}
.tl-badge-carta {
    background: #251b35;
    border: 1px solid #8a5cf5;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 13px;
    color: #d1bfff;
}
.tl-balls-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}
.tl-ball {
    width: 48px;
    height: 48px;
    background: radial-gradient(circle at 30% 30%, #8a5cf5, #3b1787);
    color: white;
    font-weight: bold;
    font-size: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 4px 10px rgba(0,0,0,0.5);
}
