:root {
    --color-bg-dark: #0a0a0a;
    --color-card-bg: #141414;
    --color-gold: #ffb300;
    --color-gold-dark: #c28a00;
    --color-blue-glow: #00a8ff;
    --color-text-light: #ffffff;
    --color-text-muted: #a0a0a0;
    --font-primary: 'CompactaBT', sans-serif;
    --font-secondary: sans-serif;
}

body {
    background-color: var(--color-bg-dark);
    color: var(--color-text-light);
    font-family: var(--font-secondary);
    margin: 0;
}

.page-roster {
    background-color: #050505;
    color: #fff;
    font-family: var(--font-body, sans-serif);
}

.roster-wrapper {
    min-height: 100vh;
    padding-top: 80px;
}

.roster-hero {
    position: relative;
    padding: 100px 20px 60px;
    overflow: hidden;
}

.hero-bg-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: 0;
}
.hero-bg-blur.left {
    top: 20%; left: 10%; width: 400px; height: 400px; background: #0066ff;
}
.hero-bg-blur.right {
    bottom: 0; right: 10%; width: 300px; height: 300px; background: #ffb300;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.badge-pill {
    display: flex;
    width: max-content;
    margin: 0 auto 24px auto;
    
    align-items: center; 
    gap: 8px;
    padding: 8px 16px; 
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.badge-pill span {
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 2px; color: #a0a0a0;
}
.icon-gold { color: #ffb300; width: 16px; height: 16px; }
.icon-blue { color: #0066ff; width: 16px; height: 16px; }

.hero-title {
    font-family: 'CompactaBT', sans-serif;
    font-size: clamp(3.5rem, 8vw, 6rem);
    line-height: 1; margin: 0 0 16px 0;
    text-align: center;
}

.hero-desc {
    color: #a0a0a0; font-size: 1.1rem; max-width: 600px; margin: 0 auto;
}

.hero-stats {
    display: flex; justify-content: center; align-items: center; gap: 30px;
    margin-top: 50px;
}
.stat-item{
    text-align: center;
}
.stat-item h3 {
    font-family: 'CompactaBT', sans-serif; font-size: 2.5rem; margin: 10px 0 5px;
}
.stat-item p {
    font-size: 0.65rem; text-transform: uppercase; letter-spacing: 2px; color: #a0a0a0; margin: 0;
}
.stat-divider { width: 1px; height: 50px; background: rgba(255,255,255,0.1); }


.players-container {
    display: flex; flex-direction: column; gap: 50px; padding-bottom: 100px; max-width: 1200px; margin: 0 auto;
}

.r-card {
    background-color: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.r-card::before,
.r-card::after {
    content: '';
    position: absolute;
    z-index: -1;
    top: -2px; left: -2px; right: -2px; bottom: -2px;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.r-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.r-card-image {
    position: relative; overflow: hidden;
}
.r-card-image img {
    width: 100%; height: 100%; object-fit: cover; object-position: center;
    opacity: 0.6;
    filter: grayscale(100%); transition: opacity 0.3s ease, transform 0.3s ease;
}
.r-card:hover .r-card-image img {
    filter: grayscale(0%); transform: scale(1.05);
}

.r-card-number {
    position: absolute; top: 20px; left: 20px;
    font-family: 'CompactaBT', sans-serif; font-size: 6rem;
    color: rgba(255,255,255,0.0); line-height: 1; z-index: 2; pointer-events: none;
}
.r-card-number-desktop { display: none; }

.r-card-info { padding: 30px; position: relative; display: flex; flex-direction: column; justify-content: center; }

.r-role {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 3px;
}
.accent-blue .r-role { color: #0066ff; }
.accent-mixed .r-role { color: #00e5ff; }

.r-name {
    font-family: 'CompactaBT', sans-serif; font-size: 4rem; line-height: 1; margin: 0;
}
.r-realname { color: #888; font-size: 0.9rem; margin: 5px 0 20px 0; }
.r-bio { color: #a0a0a0; line-height: 1.6; margin-bottom: 30px; }

.r-bottom-area { 
    display: flex !important; 
    flex-direction: column !important; 
    align-items: flex-start !important; 
    gap: 15px !important; 
    width: 100% !important;
}
.r-games, .r-socials {
    width: 100% !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}
.r-game-badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 12px; background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 50px;
    user-select: none;;
}
.game-icon-img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}
.r-game-badge i { width: 14px; height: 14px;  }
.accent-blue .r-game-badge i { color: #0066ff; }

.r-card.accent-red:hover { border-color: rgba(255, 0, 0, 0.5);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.6), 
                0 0 30px rgba(255, 0, 0, 0.4), 
                0 0 60px rgba(255, 0, 0, 0.2); 
 }
.r-card.accent-red .r-role, 
.r-card.accent-red .r-game-badge i { color: #ff0000; }

.r-card.accent-pink:hover { 
    border-color: rgba(242, 109, 188, 0.5); 
    box-shadow: 0 0 15px rgba(242, 109, 188, 0.6), 
                0 0 30px rgba(242, 109, 188, 0.4), 
                0 0 60px rgba(242, 109, 188, 0.2);
}
.r-card.accent-pink .r-role, 
.r-card.accent-pink .r-game-badge i { 
    color: #f26dbc; 
}

.accent-pink .r-social-btn:hover { 
    border-color: rgba(242, 109, 188, 0.5); 
}
.accent-pink .r-social-btn:hover .social-img {
    filter: brightness(0) saturate(100%) invert(60%) sepia(35%) saturate(1476%) hue-rotate(293deg) brightness(98%) contrast(92%);
}

.r-card.accent-blue:hover { border-color: rgba(0, 102, 255, 0.5); box-shadow: 0 0 15px rgba(0, 102, 255, 0.6), 
                0 0 30px rgba(0, 102, 255, 0.4), 
                0 0 60px rgba(0, 102, 255, 0.2); }
.r-card.accent-blue .r-role, 
.r-card.accent-blue .r-game-badge i { color: #0066ff; }

.r-card.accent-cyan:hover { border-color: rgba(0, 229, 255, 0.5); box-shadow: 0 0 15px rgba(0, 229, 255, 0.6), 
                0 0 30px rgba(0, 229, 255, 0.4), 
                0 0 60px rgba(0, 229, 255, 0.2); }
.r-card.accent-cyan .r-role, 
.r-card.accent-cyan .r-game-badge i { color: #00e5ff; }

.r-card.accent-purple:hover { border-color: rgba(184, 41, 255, 0.5); box-shadow: 0 0 15px rgba(184, 41, 255, 0.6), 
                0 0 30px rgba(184, 41, 255, 0.4), 
                0 0 60px rgba(184, 41, 255, 0.2); }
.r-card.accent-purple .r-role, 
.r-card.accent-purple .r-game-badge i { color: #b829ff;  }

.r-card.accent-green:hover { border-color: rgba(0, 255, 0, 0.5); box-shadow: 0 10px 30px -10px rgba(0, 255, 0, 0.15); }
.r-card.accent-green .r-role, 
.r-card.accent-green .r-game-badge i { color: #00ff00; }

.r-card.accent-orange:hover { border-color: rgba(255, 102, 0, 0.5); box-shadow: 0 10px 30px -10px rgba(255, 102, 0, 0.15); }
.r-card.accent-orange .r-role, 
.r-card.accent-orange .r-game-badge i { color: #ff6600; }

.r-card.accent-indigo:hover { 
    border-color: #7155f2;
    box-shadow: 0 0 15px rgba(113, 85, 242, 0.6), 
                0 0 30px rgba(113, 85, 242, 0.4), 
                0 0 60px rgba(113, 85, 242, 0.2); 
}
.r-card.accent-darkred:hover { 
    border-color: #950606;
    box-shadow: 0 0 15px rgba(149, 6, 6, 0.6), 
                0 0 30px rgba(149, 6, 6, 0.4), 
                0 0 60px rgba(149, 6, 6, 0.2); 
}

.r-card.accent-violet:hover { 
    border-color: #8C16DB;
    box-shadow: 0 0 15px rgba(140, 22, 219, 0.6), 
                0 0 30px rgba(140, 22, 219, 0.4), 
                0 0 60px rgba(140, 22, 219, 0.2); 
}
.r-card.accent-violet .r-role, .r-card.accent-violet .r-game-badge i { color: #8C16DB; }
.accent-violet .r-social-btn:hover { border-color: rgba(140, 22, 219, 0.5); }
.accent-violet .r-social-btn:hover .social-img {
    filter: brightness(0) saturate(100%) invert(21%) sepia(81%) saturate(5318%) hue-rotate(273deg) brightness(88%) contrast(106%);
}

.r-card.accent-darkred .r-role, .r-card.accent-darkred .r-game-badge i { color: #950606; }
.accent-darkred .r-social-btn:hover { border-color: rgba(149, 6, 6, 0.5); }
.accent-darkred .r-social-btn:hover .social-img {
    filter: brightness(0) saturate(100%) invert(11%) sepia(93%) saturate(5462%) hue-rotate(352deg) brightness(92%) contrast(106%);
}
.r-card.accent-indigo .r-role, .r-card.accent-indigo .r-game-badge i { color: #7155f2; }
.accent-indigo .r-social-btn:hover { border-color: rgba(113, 85, 242, 0.5); }
.accent-indigo .r-social-btn:hover .social-img {
    filter: brightness(0) saturate(100%) invert(37%) sepia(80%) saturate(4155%) hue-rotate(240deg) brightness(96%) contrast(95%);
}

.r-card.accent-magenta:hover { 
    border-color: #BF26B5;
    box-shadow: 0 0 15px rgba(191, 38, 181, 0.6), 0 0 30px rgba(191, 38, 181, 0.4), 0 0 60px rgba(191, 38, 181, 0.2); 
}
.r-card.accent-magenta .r-role, .r-card.accent-magenta .r-game-badge i { color: #BF26B5; }
.accent-magenta .r-social-btn:hover { border-color: rgba(191, 38, 181, 0.5); }
.accent-magenta .r-social-btn:hover .social-img {
    filter: brightness(0) saturate(100%) invert(31%) sepia(85%) saturate(3065%) hue-rotate(282deg) brightness(88%) contrast(100%);
}


.r-card.accent-lightpink:hover { 
    border-color: #FFC0CB;
    box-shadow: 0 0 15px rgba(255, 192, 203, 0.6), 0 0 30px rgba(255, 192, 203, 0.4), 0 0 60px rgba(255, 192, 203, 0.2); 
}
.r-card.accent-lightpink .r-role, .r-card.accent-lightpink .r-game-badge i { color: #FFC0CB; }
.accent-lightpink .r-social-btn:hover { border-color: rgba(255, 192, 203, 0.5); }
.accent-lightpink .r-social-btn:hover .social-img {
    filter: brightness(0) saturate(100%) invert(86%) sepia(35%) saturate(1455%) hue-rotate(293deg) brightness(101%) contrast(103%);
}


.r-card.accent-white:hover { 
    border-color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.6), 0 0 30px rgba(255, 255, 255, 0.4), 0 0 60px rgba(255, 255, 255, 0.2); 
}
.r-card.accent-white .r-role, .r-card.accent-white .r-game-badge i { color: #ffffff; }
.accent-white .r-social-btn:hover { border-color: rgba(255, 255, 255, 0.5); }
.accent-white .r-social-btn:hover .social-img {
    filter: brightness(0) invert(100%);
}


.social-img {
    width: 25px;
    height: 25px;
    transition: opacity 0.3s ease; 
    opacity: 0.6; 
}

.r-social-btn:hover .social-img {
    opacity: 1;
}
.accent-red .r-social-btn:hover { border-color: rgba(255, 0, 0, 0.5); }
.accent-red .r-social-btn:hover .social-img {
    filter: brightness(0) saturate(100%) invert(15%) sepia(95%) saturate(6932%) hue-rotate(358deg) brightness(103%) contrast(114%);
}

.accent-blue .r-social-btn:hover { border-color: rgba(0, 102, 255, 0.5); }
.accent-blue .r-social-btn:hover .social-img {
    filter: brightness(0) saturate(100%) invert(27%) sepia(98%) saturate(2250%) hue-rotate(209deg) brightness(101%) contrast(104%);
}

.accent-cyan .r-social-btn:hover { border-color: rgba(0, 229, 255, 0.5); }
.accent-cyan .r-social-btn:hover .social-img {
    filter: brightness(0) saturate(100%) invert(74%) sepia(21%) saturate(3990%) hue-rotate(142deg) brightness(103%) contrast(105%);
}

.accent-purple .r-social-btn:hover { border-color: rgba(184, 41, 255, 0.5); }
.accent-purple .r-social-btn:hover .social-img {
    filter: brightness(0) saturate(100%) invert(29%) sepia(85%) saturate(4632%) hue-rotate(269deg) brightness(108%) contrast(114%);
}

.accent-green .r-social-btn:hover { border-color: rgba(0, 255, 0, 0.5); }
.accent-green .r-social-btn:hover .social-img {
    filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(118%) contrast(119%);
}

.accent-orange .r-social-btn:hover { border-color: rgba(255, 102, 0, 0.5); }
.accent-orange .r-social-btn:hover .social-img {
    filter: brightness(0) saturate(100%) invert(53%) sepia(87%) saturate(2641%) hue-rotate(2deg) brightness(105%) contrast(105%);
}

@media (min-width: 1024px) {
    .layout-left, .layout-right {
        display: grid; grid-template-columns: 1fr 1fr; height: 700px;
    }
    .layout-right .r-card-info { order: 1; }
    .layout-right .r-card-image { order: 2; }
    
    .layout-left .r-card-number { left: 30px; font-size: 8rem; }
    .layout-right .r-card-number { left: auto; right: 30px; font-size: 8rem; }
    
    .r-card-info { padding: 50px; }
    .r-name { font-size: 5rem; }
    
    .layout-left .r-card-overlay {
        position: absolute; inset: 0; background: linear-gradient(to right, transparent, transparent, #0f0f0f);
    }
    .layout-right .r-card-overlay {
        position: absolute; inset: 0; background: linear-gradient(to left, transparent, transparent, #0f0f0f);
    }

    .layout-center .r-card-image { height: 450px; }
    .layout-center .r-card-overlay {
        position: absolute; inset: 0; background: linear-gradient(to top, #0f0f0f, rgba(15,15,15,0.4), transparent);
    }
    .layout-center .r-card-number { left: 30px; font-size: 9rem; }
    .r-card-floating-name {
        position: absolute; bottom: 30px; width: 100%; text-align: center;
    }
    .r-card-floating-name h2 { font-family: 'CompactaBT', sans-serif; font-size: 6rem; margin: 0; text-shadow: 0 10px 30px rgba(0,0,0,0.8); }
    .layout-center .r-card-info { text-align: center; align-items: center; padding: 40px 80px; }
    .layout-center .r-bottom-area { align-items: center;}
    .r-bottom-border { height: 4px; width: 100%; background: linear-gradient(90deg, transparent, #ffb300, transparent); }

    .layout-wide {
        display: grid; grid-template-columns: 1fr 2fr; height: auto;
    }
    .layout-wide .r-card-overlay {
        position: absolute; inset: 0; background: linear-gradient(to right, transparent, #0f0f0f);
    }
    .layout-wide .r-card-number { display: none; }
    .layout-wide .r-card-number-desktop {
        display: block; position: absolute; top: 10px; right: 30px;
        font-family: 'CompactaBT', sans-serif; font-size: 8rem; color: rgba(255,255,255,0.03); line-height: 1; pointer-events: none;
    }
    .layout-wide .r-name { font-size: 5rem; }
    .layout-wide .r-bio { max-width: 80%; }
    .r-divider-line { width: 60px; height: 3px; background: #0066ff; margin-bottom: 25px; }
    .r-vertical-divider { width: 1px; height: 30px; background: rgba(255,255,255,0.1); margin: 0 15px; }
    .r-left-border { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(to bottom, #0066ff, transparent); }
}

@media (max-width: 1023px) {
    .r-card-image { height: 350px; }
    .r-card-overlay { position: absolute; inset: 0; background: linear-gradient(to top, #0f0f0f, transparent); }
    .layout-center .r-card-floating-name h2 { font-size: 4rem; }
    .layout-center .r-card-info { text-align: center; align-items: center; }
    .layout-center .r-bottom-area { justify-content: center; }
}


.layout-center .r-bottom-area,
.layout-center .r-games, 
.layout-center .r-socials {
    align-items: center !important;
    justify-content: center !important;
}
.r-vertical-divider {
    display: none !important;
}

@media (max-width: 570px) {
    .roster-wrapper { padding-top: 65px; }
    .roster-hero { padding: 60px 15px 40px; }
    .hero-title { font-size: clamp(2.5rem, 12vw, 4rem); }
    .hero-desc { font-size: 0.95rem; }
    .hero-stats { flex-direction: column; gap: 20px; }
    .stat-divider { width: 60px; height: 1px; }
    .r-card-image { height: 260px; }
    .r-card-info { padding: 20px; }
    .r-name { font-size: 2.8rem; }
    .layout-center .r-card-floating-name h2 { font-size: 2.8rem; }
    .r-bio { font-size: 0.9rem; margin-bottom: 20px; }
}

@media (min-width: 1400px) {
    .players-container { max-width: 1400px; gap: 60px; padding-bottom: 120px; }
    .r-name { font-size: 6rem; }
    .layout-wide .r-name { font-size: 6rem; }
    .r-card-info { padding: 60px; }
    .r-bio { font-size: 1.1rem; }
    .hero-title { font-size: 7rem; }
}