/* common.css */

.flexligne {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flexcol {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.bold {
    font-weight: 600;
}

.italic {
    font-style: italic;
}

.colormagic {
    color: hsla(240, 80%, 72%, 1);
}

.colorcorrupted {
    color: hsla(0, 80%, 70%, 1);
}

.colorenchanted {
    color: hsla(270, 80%, 70%, 1);
}

.colorcrafted {
    color: hsla(120, 80%, 65%, 1);
}

.colorruneword {
    color: hsla(30, 60%, 55%, 1);
}

.colorunique {
    color: hsla(35, 80%, 70%, 1);
}

.colorrare {
    color: hsla(60, 80%, 70%, 1);
}

.colornormal {
    color: white;
}

.colorred {
    color: hsla(0, 80%, 70%, 1);
}

.colorfire {
    color: hsla(0, 80%, 80%, 1);
}

.colorearth {
    color: hsla(30, 50%, 70%, 1);
}

.colorice {
    color: hsla(240, 80%, 80%, 1);
}

.colorcold {
    color: hsla(240, 80%, 80%, 1);
}

.colorwater {
    color: hsla(220, 80%, 65%, 1);
}

.colorlight {
    color: hsla(60, 80%, 80%, 1);
}

.coloracid {
    color: hsla(75, 80%, 80%, 1);
}

.colorpoison {
    color: hsla(120, 80%, 80%, 1);
}

.colornature {
    color: hsla(140, 80%, 65%, 1);
}

.colormagical {
    color: hsla(300, 80%, 80%, 1);
}

.colormoon {
    color: hsla(270, 80%, 80%, 1);
}

.colordeath {
    color: hsla(280, 80%, 70%, 1);
}

.colorphysical {
    color: hsla(60, 50%, 80%, 1);
}

.colorsun {
    color: hsla(60, 100%, 90%, 1);
}

.colorheal {
    color: hsla(80, 100%, 80%, 1);
}

.colorgold {
    color: hsla(45, 100%, 80%, 1);
}

.colorgrey {
    color: hsla(60, 0%, 78%, 1);
}

.colorsilver {
    color: hsla(0, 0%, 78%, 1);
}

.colordark {
    color: hsla(0, 0%, 40%, 1);
}

.colorblood {
    color: hsla(350, 80%, 65%, 1);
}

.colormana {
    color: hsla(220, 80%, 65%, 1);
}


::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-thumb {
    background-color: hsl(0, 0%, 70%);
}

::-webkit-scrollbar-track {
    background-color: hsla(0, 0%, 90%, 0);
}





/* SKILLS */

/* Enhanced Skills Modal System */
#skills {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;

    max-height: 90vh;
    max-width: min(1400px, 95vw);
    min-width: 900px;

    /* Modern modal styling */
    background: linear-gradient(145deg, rgba(25, 25, 30, 0.98), rgba(15, 15, 20, 0.99));
    border: 2px solid rgba(100, 100, 120, 0.6);
    border-radius: 20px;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.8),
        0 10px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);

    display: flex;
    flex-direction: column;
    color: white;
    overflow: hidden;
}

#skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            rgba(255, 107, 53, 0.8),
            rgba(74, 158, 255, 0.8),
            rgba(125, 237, 159, 0.8),
            rgba(255, 193, 7, 0.8),
            rgba(138, 43, 226, 0.8),
            rgba(255, 107, 53, 0.8));
    border-radius: 20px 20px 0 0;
}

/* Close Button */
.skills-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: linear-gradient(145deg,
            rgba(60, 60, 70, 0.9),
            rgba(40, 40, 50, 0.95));
    border: 1px solid rgba(100, 100, 120, 0.4);
    border-radius: 10px;
    color: rgba(200, 200, 210, 0.8);
    cursor: pointer;
    z-index: 25;

    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;

    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    user-select: none;
}

.skills-close:hover {
    background: linear-gradient(145deg,
            rgba(255, 107, 107, 0.8),
            rgba(255, 75, 75, 0.9));
    border-color: rgba(255, 107, 107, 0.6);
    color: white;
    transform: scale(1.05);
}

/* Header Section */
.skills-header {
    padding: 24px 32px 16px 32px;
    border-bottom: 1px solid rgba(100, 100, 120, 0.3);
    background: rgba(40, 40, 45, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.skills-title {
    font-size: 24px;
    font-weight: 600;
    color: rgba(255, 107, 53, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.skill-points {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: linear-gradient(135deg,
            rgba(255, 107, 53, 0.15),
            rgba(255, 130, 70, 0.1));
    border: 1px solid rgba(255, 107, 53, 0.4);
    border-radius: 12px;
    font-weight: 600;
    color: rgba(255, 107, 53, 0.9);
    box-shadow: 0 0 12px rgba(255, 107, 53, 0.2);
}

.skill-points.no-points {
    color: rgba(120, 120, 130, 0.8);
    background: linear-gradient(135deg,
            rgba(80, 80, 90, 0.15),
            rgba(60, 60, 70, 0.1));
    border-color: rgba(80, 80, 90, 0.4);
    box-shadow: 0 0 8px rgba(80, 80, 90, 0.2);
}

.skill-points-icon {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle,
            rgba(255, 107, 53, 0.8),
            rgba(255, 130, 70, 0.6));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
}

/* Content Container */
.skills-content {
    padding: 24px 32px;
    overflow-y: auto;
    max-height: calc(90vh - 200px);
}

/* Custom Scrollbar */
.skills-content::-webkit-scrollbar {
    width: 8px;
}

.skills-content::-webkit-scrollbar-track {
    background: rgba(40, 40, 45, 0.5);
    border-radius: 4px;
}

.skills-content::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 53, 0.6);
    border-radius: 4px;
}

.skills-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 53, 0.8);
}

/* Fixed Skill Tier Rows - Centered level indicator */
.skill_row {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 40px 20px 20px 20px;
    /* Extra top padding for level indicator */
    min-height: 120px;
    background: linear-gradient(135deg,
            rgba(40, 40, 45, 0.3),
            rgba(30, 30, 35, 0.5));
    border: 1px solid rgba(80, 80, 90, 0.2);
    border-radius: 12px;
    /* More subtle rounded corners */
    margin-bottom: 16px;
    transition: all 0.2s ease;
}

.skill_row:hover {
    background: linear-gradient(135deg,
            rgba(45, 45, 50, 0.4),
            rgba(35, 35, 40, 0.6));
    border-color: rgba(100, 100, 120, 0.3);
}

/* Centered Skill Level Indicator */
.skill_row_level {
    position: absolute;
    top: -12px;
    /* Half outside the row */
    left: 50%;
    transform: translateX(-50%);

    display: flex;
    justify-content: center;
    align-items: center;

    width: 32px;
    height: 24px;

    background: linear-gradient(135deg,
            rgba(255, 107, 53, 0.9),
            rgba(255, 130, 70, 0.8));
    border: 2px solid rgba(255, 107, 53, 0.8);
    border-radius: 6px;
    /* Rectangular with subtle corners */

    font-size: 12px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 2px 6px rgba(255, 107, 53, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);

    z-index: 10;
}

/* Enhanced Skill Cards */
.skill {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: 14px;

    padding: 16px 20px;
    min-width: 140px;
    min-height: 80px;

    background: linear-gradient(145deg,
            rgba(45, 45, 50, 0.8),
            rgba(35, 35, 40, 0.9));
    border: 2px solid rgba(100, 100, 120, 0.4);
    border-radius: 12px;

    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.skill:hover {
    background: linear-gradient(145deg,
            rgba(255, 107, 53, 0.1),
            rgba(255, 130, 70, 0.05));
    border-color: rgba(255, 107, 53, 0.6);
    /* transform: translateY(-4px); */
    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.4),
        0 4px 12px rgba(255, 107, 53, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Skill States */
.skill_unknown {
    /* opacity: 0.4; */
    border-color: rgba(80, 80, 90, 0.2);
    background: linear-gradient(145deg,
            rgba(30, 30, 35, 0.5),
            rgba(25, 25, 30, 0.7));
}

.skill_unknown:hover {
    background: linear-gradient(145deg,
            rgba(35, 35, 40, 0.6),
            rgba(30, 30, 35, 0.8));
    border-color: rgba(100, 100, 120, 0.3);
    /* transform: translateY(-2px); */
}

/* Learned skills get category colors */
.skill:not(.skill_unknown) {
    border-color: rgba(255, 107, 53, 0.6);
    background: linear-gradient(145deg,
            rgba(255, 107, 53, 0.05),
            rgba(255, 130, 70, 0.02));
    box-shadow:
        0 0 15px rgba(255, 107, 53, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Skill Title */
.skill_title {
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    color: rgba(220, 220, 230, 0.95);
    margin-bottom: 6px;
    line-height: 1.3;
    max-width: 120px;
    word-wrap: break-word;
    white-space: normal;
}

.skill_title_unknown {
    color: rgba(120, 120, 130, 0.7);
}

/* Skill Level Badge */
.skill_level {
    background: linear-gradient(135deg,
            rgba(255, 107, 53, 0.8),
            rgba(255, 130, 70, 0.9));
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    margin-top: 6px;
}

/* Enhanced Skill Description Tooltip */
.skill_description {
    opacity: 1;
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);

    display: none;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;

    background: linear-gradient(145deg,
            rgba(15, 15, 20, 0.98),
            rgba(10, 10, 15, 0.99));
    border: 2px solid rgba(255, 107, 53, 0.6);
    border-radius: 16px;
    padding: 20px 24px;

    min-width: 300px;
    max-width: 450px;
    z-index: 2000;

    pointer-events: none;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;

    box-shadow:
        0 16px 50px rgba(0, 0, 0, 0.8),
        0 6px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 30px rgba(255, 107, 53, 0.3);
    backdrop-filter: blur(16px);
}

.skill:hover .skill_description {
    display: flex;
}

.skill_description::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: rgba(255, 107, 53, 0.6);
}

/* Skill Description Content */
.skill_description .skill_title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    color: rgba(255, 107, 53, 0.9);
    max-width: none;
    white-space: normal;
}

.skill_explanation {
    font-style: italic;
    font-size: 13px;
    color: rgba(200, 200, 210, 0.8);
    margin-bottom: 16px;
    line-height: 1.4;
}

.skill_category {
    background: rgba(255, 107, 53, 0.15);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 8px;
    padding: 4px 10px;
    margin: 4px 8px 4px 0;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    display: inline-block;
}

.skill_description_separator {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(100, 100, 120, 0.4),
            transparent);
    margin: 12px 0;
}

.damage_effect_prefix {
    font-weight: 600;
    color: rgba(255, 107, 53, 0.9);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 12px;
    margin-bottom: 6px;
}

/* Separator */
.skill_separator {
    width: 100%;
    height: 24px;
}

/* Responsive Design */
@media only screen and (orientation: portrait) {
    #skills {
        min-width: 0;
        max-width: 98vw;
        max-height: 95vh;
        margin: 1vh;
    }

    .skills-header {
        padding: 16px 20px 12px 20px;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .skills-content {
        padding: 16px 20px;
    }

    .skill_row {
        flex-wrap: wrap;
        padding: 16px;
        padding-left: 16px;
        justify-content: center;
        gap: 12px;
    }

    .skill_row_level {
        position: static;
        transform: none;
        order: -1;
        margin-bottom: 12px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .skill {
        min-width: 120px;
        min-height: 70px;
        padding: 12px 16px;
    }

    .skill_title {
        font-size: 12px;
        max-width: 100px;
    }

    .skill_description {
        top: auto;
        bottom: calc(100% + 12px);
        min-width: 280px;
        max-width: 320px;
    }
}

@media only screen and (max-width: 480px) {
    .skills-title {
        font-size: 18px;
    }

    .skill {
        min-width: 100px;
        min-height: 60px;
        padding: 10px 12px;
    }

    .skill_title {
        font-size: 11px;
        max-width: 80px;
    }

    .skill_description {
        min-width: 250px;
        max-width: 280px;
        padding: 16px 20px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .skill {
        transition: none;
    }

    .skill:hover {
        transform: none;
    }
}

/* Focus states */
.skill:focus-visible {
    outline: 2px solid rgba(255, 107, 53, 0.8);
    outline-offset: 2px;
}




/* Enhanced Skill Rows for Wiki - Updated */
.skill_row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    margin-bottom: 12px;
    background: linear-gradient(135deg, rgba(40, 40, 45, 0.3), rgba(30, 30, 35, 0.5));
    border: 1px solid rgba(80, 80, 90, 0.2);
    border-radius: 12px;
    position: relative;
    padding-left: 50px;
}

.skill_row_level {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 20px;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.9), rgba(255, 130, 70, 0.8));
    border: 2px solid rgba(255, 107, 53, 0.8);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 6px rgba(255, 107, 53, 0.3);
}

/* Skill component styling improvements */
.skill {
    padding: 8px 12px;
    margin: 4px;
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(45, 45, 50, 0.6), rgba(35, 35, 40, 0.8));
    border: 1px solid rgba(80, 80, 90, 0.4);
    transition: all 0.2s ease;
    cursor: pointer;
    font-weight: 500;
}

.skill:hover {
    background: linear-gradient(145deg, rgba(74, 158, 255, 0.1), rgba(50, 130, 220, 0.05));
    border-color: rgba(74, 158, 255, 0.5);
    /* transform: translateY(-1px); */
}

Skill description styling improvements .skill_description {
    background: linear-gradient(145deg, rgba(25, 25, 30, 0.95), rgba(15, 15, 20, 0.98));
    border: 1px solid rgba(100, 100, 120, 0.6);
    border-radius: 8px;
    padding: 12px;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(220, 220, 230, 0.9);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    max-width: 300px;
    z-index: 1000;
}

.skill_description .stat {
    font-size: 14px;
    margin: 2px 0;
}

.skill_description .stat_title {
    font-size: 15px;
    font-weight: 600;
    color: rgba(74, 158, 255, 0.9);
    margin-bottom: 4px;
}

.skill_description .stat_value {
    font-size: 14px;
    color: rgba(200, 200, 210, 0.9);
}

/* Skill name and level styling */
.skill_name {
    font-size: 15px;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
}

.skill_level {
    font-size: 13px;
    color: rgba(200, 200, 210, 0.8);
}

/* Responsive adjustments for skills */
@media only screen and (max-width: 480px) {
    .skill_row {
        gap: 8px;
        padding: 8px 0;
        margin-bottom: 10px;
        padding-left: 45px;
    }

    .skill_row_level {
        left: 10px;
        width: 24px;
        height: 18px;
        font-size: 10px;
    }

    .skill {
        padding: 6px 10px;
        font-size: 14px;
    }

    .skill_description {
        font-size: 13px;
        padding: 10px;
        max-width: 250px;
    }

    .skill_description .stat {
        font-size: 13px;
    }

    .skill_description .stat_title {
        font-size: 14px;
    }
}


/* TALENTS */

/* Enhanced Talents Modal for Wiki */
.talents-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    max-height: 90vh;
    max-width: min(1200px, 95vw);
    min-width: 800px;

    /* Modern modal styling */
    background: linear-gradient(145deg, rgba(25, 25, 30, 0.98), rgba(15, 15, 20, 0.99));
    border: 2px solid rgba(100, 100, 120, 0.6);
    border-radius: 20px;
    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.8),
        0 10px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);

    display: flex;
    flex-direction: column;
    color: white;
    overflow: hidden;
}

.talents-modal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
            rgba(138, 43, 226, 0.8),
            rgba(255, 107, 53, 0.8),
            rgba(74, 158, 255, 0.8),
            rgba(125, 237, 159, 0.8),
            rgba(255, 193, 7, 0.8),
            rgba(138, 43, 226, 0.8));
    border-radius: 20px 20px 0 0;
}

/* Header Section */
.talents-header {
    padding: 24px 32px 16px 32px;
    border-bottom: 1px solid rgba(100, 100, 120, 0.3);
    background: rgba(40, 40, 45, 0.3);
    display: flex;
    justify-content: center;
    align-items: center;
}

.talents-title {
    font-size: 24px;
    font-weight: 600;
    color: rgba(138, 43, 226, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* Content Container */
.talents-content {
    padding: 24px 32px;
    overflow-y: auto;
    max-height: calc(90vh - 200px);
}

/* Custom Scrollbar */
.talents-content::-webkit-scrollbar {
    width: 8px;
}

.talents-content::-webkit-scrollbar-track {
    background: rgba(40, 40, 45, 0.5);
    border-radius: 4px;
}

.talents-content::-webkit-scrollbar-thumb {
    background: rgba(138, 43, 226, 0.6);
    border-radius: 4px;
}

.talents-content::-webkit-scrollbar-thumb:hover {
    background: rgba(138, 43, 226, 0.8);
}

/* Talents Table */
.talents-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 8px;
    margin-bottom: 32px;
}

/* Table Headers */
.talent-header {
    background: linear-gradient(135deg,
            rgba(60, 60, 70, 0.8),
            rgba(45, 45, 55, 0.9));
    border: 1px solid rgba(100, 100, 120, 0.4);
    border-radius: 12px;
    padding: 16px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(200, 200, 210, 0.9);
    position: relative;
}

.talent-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            rgba(138, 43, 226, 0.6),
            rgba(155, 60, 240, 0.8),
            rgba(138, 43, 226, 0.6));
    border-radius: 12px 12px 0 0;
}

.talent-header.empty {
    background: transparent;
    border: none;
}

.talent-header.empty::before {
    display: none;
}

/* Category Headers */
.category-header {
    background: linear-gradient(135deg,
            rgba(80, 80, 90, 0.6),
            rgba(60, 60, 70, 0.8));
    border: 1px solid rgba(100, 100, 120, 0.3);
    border-radius: 12px;
    padding: 14px 18px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    position: relative;
    transition: all 0.2s ease;
}

/* Category color classes */
.category-header.colormagical {
    border-color: rgba(186, 104, 200, 0.6);
    background: linear-gradient(135deg,
            rgba(186, 104, 200, 0.15),
            rgba(186, 104, 200, 0.05));
    color: rgba(186, 104, 200, 0.9);
}

.category-header.colorfire {
    border-color: rgba(255, 128, 128, 0.6);
    background: linear-gradient(135deg,
            rgba(255, 128, 128, 0.15),
            rgba(255, 128, 128, 0.05));
    color: rgba(255, 128, 128, 0.9);
}

.category-header.colorphysical {
    border-color: rgba(255, 255, 204, 0.6);
    background: linear-gradient(135deg,
            rgba(255, 255, 204, 0.15),
            rgba(255, 255, 204, 0.05));
    color: rgba(255, 255, 204, 0.9);
}

.category-header.colorsilver {
    border-color: rgba(199, 199, 199, 0.6);
    background: linear-gradient(135deg,
            rgba(199, 199, 199, 0.15),
            rgba(199, 199, 199, 0.05));
    color: rgba(199, 199, 199, 0.9);
}

.category-header.colorblood {
    border-color: rgba(255, 105, 135, 0.6);
    background: linear-gradient(135deg,
            rgba(255, 105, 135, 0.15),
            rgba(255, 105, 135, 0.05));
    color: rgba(255, 105, 135, 0.9);
}

.category-header.colorgold {
    border-color: rgba(255, 204, 128, 0.6);
    background: linear-gradient(135deg,
            rgba(255, 204, 128, 0.15),
            rgba(255, 204, 128, 0.05));
    color: rgba(255, 204, 128, 0.9);
}

.category-header.colorpoison {
    border-color: rgba(128, 255, 128, 0.6);
    background: linear-gradient(135deg,
            rgba(128, 255, 128, 0.15),
            rgba(128, 255, 128, 0.05));
    color: rgba(128, 255, 128, 0.9);
}

.category-header.colordark {
    border-color: rgba(102, 102, 102, 0.6);
    background: linear-gradient(135deg,
            rgba(102, 102, 102, 0.15),
            rgba(102, 102, 102, 0.05));
    color: rgba(102, 102, 102, 0.9);
}

.category-header.colormagic {
    border-color: rgba(153, 129, 184, 0.6);
    background: linear-gradient(135deg,
            rgba(153, 129, 184, 0.15),
            rgba(153, 129, 184, 0.05));
    color: rgba(153, 129, 184, 0.9);
}

/* Talent Cells */
.talent-cell {
    background: linear-gradient(145deg,
            rgba(45, 45, 50, 0.6),
            rgba(35, 35, 40, 0.8));
    border: 1px solid rgba(80, 80, 90, 0.4);
    border-radius: 12px;
    padding: 10px 14px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    vertical-align: middle;
}

.talent-cell:hover {
    background: linear-gradient(145deg,
            rgba(138, 43, 226, 0.08),
            rgba(155, 60, 240, 0.05));
    border-color: rgba(138, 43, 226, 0.4);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(138, 43, 226, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.talent-cell.learned {
    border-color: rgba(138, 43, 226, 0.8);
    background: linear-gradient(145deg,
            rgba(138, 43, 226, 0.15),
            rgba(155, 60, 240, 0.1));
    box-shadow:
        0 0 15px rgba(138, 43, 226, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.talent-name {
    font-weight: 600;
    font-size: 13px;
    color: rgba(220, 220, 230, 0.9);
    margin-bottom: 8px;
    line-height: 1.3;
}

.talent-cell.learned .talent-name {
    color: rgba(138, 43, 226, 1);
}

/* Talent Description Tooltip */
.talent-description {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(145deg,
            rgba(20, 20, 25, 0.98),
            rgba(15, 15, 20, 0.99));
    border: 1px solid rgba(138, 43, 226, 0.6);
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 250px;
    max-width: 350px;
    z-index: 2000;
    display: none;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.8),
        0 4px 16px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    pointer-events: none;
    font-size: 14px;
    color: rgba(220, 220, 230, 0.9);
}

.talent-cell:hover .talent-description {
    display: block;
}

.talent-description::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: rgba(138, 43, 226, 0.6);
}

.talent-description .stat {
    font-size: 14px;
    margin: 2px 0;
}

.talent-description .stat_title {
    font-size: 15px;
    font-weight: 600;
    color: rgba(138, 43, 226, 0.9);
    margin-bottom: 4px;
}

.talent-description .stat_value {
    font-size: 14px;
    color: rgba(200, 200, 210, 0.9);
}

/* Responsive Design */
@media only screen and (orientation: portrait) {
    .talents-modal {
        min-width: 0;
        max-width: 98vw;
        max-height: 95vh;
        margin: 1vh;
    }

    .talents-header {
        padding: 16px 20px 12px 20px;
    }

    .talents-content {
        padding: 16px 20px;
    }

    .talents-table {
        font-size: 12px;
        border-spacing: 4px;
    }

    .talent-cell {
        padding: 12px 16px;
        min-height: 60px;
    }

    .talent-name {
        font-size: 11px;
    }
}

@media only screen and (max-width: 480px) {
    .talents-title {
        font-size: 18px;
    }

    .talents-table {
        font-size: 11px;
        border-spacing: 2px;
    }

    .talent-cell {
        padding: 10px 12px;
        min-height: 50px;
    }

    .talent-name {
        font-size: 10px;
    }
}

/* Close Button */
.stats-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: linear-gradient(145deg,
            rgba(60, 60, 70, 0.9),
            rgba(40, 40, 50, 0.95));
    border: 1px solid rgba(100, 100, 120, 0.4);
    border-radius: 10px;
    color: rgba(200, 200, 210, 0.8);
    cursor: pointer;
    z-index: 25;

    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;

    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    user-select: none;
}

.stats-close:hover {
    background: linear-gradient(145deg,
            rgba(255, 107, 107, 0.8),
            rgba(255, 75, 75, 0.9));
    border-color: rgba(255, 107, 107, 0.6);
    color: white;
    transform: scale(1.05);
}


/* Stats Header - Copy of Skills Header */
.stats-header {
    padding: 24px 32px 16px 32px;
    border-bottom: 1px solid rgba(100, 100, 120, 0.3);
    background: rgba(40, 40, 45, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-title {
    font-size: 24px;
    font-weight: 600;
    color: rgba(255, 107, 53, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

.stats-points {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: linear-gradient(135deg,
            rgba(255, 107, 53, 0.15),
            rgba(255, 130, 70, 0.1));
    border: 1px solid rgba(255, 107, 53, 0.4);
    border-radius: 12px;
    font-weight: 600;
    color: rgba(255, 107, 53, 0.9);
    box-shadow: 0 0 12px rgba(255, 107, 53, 0.2);
}

.stats-points.no-points {
    color: rgba(120, 120, 130, 0.8);
    background: linear-gradient(135deg,
            rgba(80, 80, 90, 0.15),
            rgba(60, 60, 70, 0.1));
    border-color: rgba(80, 80, 90, 0.4);
    box-shadow: 0 0 8px rgba(80, 80, 90, 0.2);
}

.points-icon {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle,
            rgba(255, 107, 53, 0.8),
            rgba(255, 130, 70, 0.6));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: white;
}

/* Responsive Design for Stats Header */
@media only screen and (orientation: portrait) {
    .stats-header {
        padding: 16px 20px 12px 20px;
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}