.welcome-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}

.player-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
    margin-bottom: 1rem;
}

.player-card {
    position: relative;
    background: white;
    border: 2px solid #e8e8e8;
    border-radius: 16px;
    padding: 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.player-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
}

.player-avatar {
    font-size: 3rem;
    line-height: 1;
    margin-bottom: .4rem;
}

.player-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 .3rem;
    text-align: center;
}

.player-stats {
    display: flex;
    gap: .8rem;
    font-size: .85rem;
    color: #666;
}

.player-stat {
    display: flex;
    align-items: center;
    gap: .2rem;
}

.player-delete {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, .06);
    color: #999;
    font-size: .9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    transition: background .15s, color .15s;
}

.player-delete:hover {
    background: rgba(220, 50, 50, .15);
    color: #c33;
    transform: none;
}

.add-player-card {
    background: transparent;
    border: 2px dashed #ccc;
    border-radius: 16px;
    padding: 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    min-height: 140px;
}

.add-player-card:hover {
    border-color: var(--primary);
    background: rgba(79, 134, 247, .04);
}

.add-player-icon {
    font-size: 2rem;
    color: #bbb;
    margin-bottom: .3rem;
}

.add-player-label {
    font-size: .9rem;
    color: #999;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.modal {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    width: min(90%, 360px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal h2 {
    margin: 0 0 1rem;
    font-size: 1.2rem;
}

.modal-input {
    width: 100%;
    padding: .7rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1.1rem;
    text-align: center;
    outline: none;
    margin-bottom: 1rem;
    font-family: inherit;
}

.modal-input:focus {
    border-color: var(--primary);
}

.modal-label {
    font-size: .85rem;
    font-weight: 600;
    color: #666;
    margin-bottom: .5rem;
    align-self: flex-start;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .5rem;
    width: 100%;
    margin-bottom: 1.2rem;
}

.avatar-option {
    font-size: 1.8rem;
    padding: .4rem;
    border: 2px solid transparent;
    border-radius: 10px;
    background: #f5f5f5;
    cursor: pointer;
    text-align: center;
    transition: border-color .15s, background .15s;
    line-height: 1;
}

.avatar-option:hover {
    background: #eee;
}

.avatar-option.selected {
    border-color: var(--primary);
    background: rgba(79, 134, 247, .1);
}

.modal-actions {
    display: flex;
    gap: .6rem;
    width: 100%;
}

.modal-actions button {
    flex: 1;
    margin: 0;
    padding: .7rem 1rem;
    font-size: 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.modal-confirm {
    background: var(--primary);
    color: white;
}

.modal-confirm:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.modal-cancel {
    background: #eee;
    color: #666;
}

.modal-cancel:hover {
    transform: none;
    background: #ddd;
}

.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.confirm-dialog {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    width: min(90%, 320px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.confirm-dialog p {
    font-size: 1rem;
    margin: 0 0 1.2rem;
}

.confirm-actions {
    display: flex;
    gap: .6rem;
    width: 100%;
}

.confirm-actions button {
    flex: 1;
    margin: 0;
    padding: .6rem 1rem;
    font-size: .95rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.confirm-delete {
    background: #dc3545;
    color: white;
}

.confirm-cancel {
    background: #eee;
    color: #666;
}

.confirm-cancel:hover {
    transform: none;
    background: #ddd;
}
