.faction-selection {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
    z-index: 1000;
}

.faction-selection__title,
.faction-description__name {
    background: linear-gradient(135deg, #a57c2c 0%, #cfaa4a 45%, #b58a2a 80%, #e5c168 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.faction-selection__title {
    font-size: 35px;
    margin-bottom: 45px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5), 0 0 8px rgba(165, 124, 44, 0.4);
}

.faction-selection__container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.faction-card {
    position: relative;
    width: 130px;
    height: 110px;
    transition: all 0.4s ease;
    overflow: hidden;
}

.faction-card:hover,
.faction-card--selected {
    transform: scale(1.25);
}

.faction-card__logo {
    width: 75%;
    height: 75%;
    object-fit: contain;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    cursor: url('../ui/cursor_hover.png'), pointer;
}

.faction-card--selected .faction-card__logo {
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
}

.faction-description {
    width: 760px;
    min-height: 120px;
    padding: 20px;
    margin-bottom: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    text-align: center;
}

.faction-description__name {
    font-size: 25px;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5), 0 0 5px rgba(165, 124, 44, 0.3);
}

.faction-description__text {
    font-size: 16px;
    color: #d4d4d4;
    line-height: 1.3;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
}

.faction-description__ability {
    padding-top: 6px;
    border-top: 40px solid transparent;
    border-image: url('../ui/long.png') 70 200;
    font-size: 15px;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, #1c1c1b 0%, #ad8e3d 45%, #b58a2a 80%, #111 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.faction-description__ability strong {
    font-size: 14px;
    color: #d4d4d4;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
}

.confirm-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-size: 20px;
    font-family: 'Gwent', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: url('../ui/cursor_hover.png'), pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    pointer-events: none;
    background: linear-gradient(135deg, #a57c2c 0%, #cfaa4a 45%, #b58a2a 80%, #e5c168 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4), 0 0 5px rgba(165, 124, 44, 0.3);
}

.confirm-btn::before,
.confirm-btn::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #cfaa4a, #e5c168, #cfaa4a, transparent);
    transition: width 0.4s ease;
}

.confirm-btn::before {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.confirm-btn::after {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.confirm-btn:hover::before,
.confirm-btn:hover::after {
    width: 100%;
}

.confirm-btn:hover {
    scale: 1.03;
}

.confirm-btn:active {
    transform: scale(1.1);
}