@font-face { font-family: "Oswald"; src: url('../fonts/Oswald-Regular.ttf'); }

/* HIGHSCORE ON TOP */
.body-wrapper {
    position: relative;
    z-index: 100; /* Highest priority */
    padding: 10px 20px;
    margin: 0 auto;
    margin-top: -42px; /* Adjusted to -42px */
    width: 970px; 
    height: 460px; /* Slightly decreased from 465px */
    background: rgba(11, 7, 3, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,1);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    color: #EBD6AD;
    font-family: 'Oswald', sans-serif;
    pointer-events: auto !important;
}

.container {
    pointer-events: none;
    width: 1004px;
    margin: 0 auto;
}

.body-wrapper * {
    pointer-events: auto;
}

/* Skill Selector - Vertical 4-column Tight Grid */
.skill-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px; /* Almost connected */
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    height: auto;
    width: 135px; 
    float: left;
    margin-right: 15px;
}

.skill-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 30px;
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.2s;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.02);
}

.skill-icon:hover, .skill-icon.active {
    background: rgba(245, 190, 104, 0.2);
    border-color: rgba(245, 190, 104, 0.3);
    z-index: 2;
}

.skill-icon img {
    max-height: 16px; 
    max-width: 22px;
    width: auto;
    object-fit: contain;
}

/* Adjust wrapper for sidebar layout */
.body-wrapper {
    display: block; /* Allow floating */
}

/* Main Table Styling */
.hs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 1px;
}

.hs-table th {
    text-align: left;
    color: #F5BE68;
    text-transform: uppercase;
    font-size: 14px; 
    padding: 8px 10px;
    letter-spacing: 1px;
}

.hs-table tr {
    background: rgba(255, 255, 255, 0.02);
}

.hs-table td {
    padding: 8px 10px; 
    font-size: 15px; 
    border: none;
}

.rank-1 { color: #FFD700 !important; font-size: 16px !important; }
.rank-2 { color: #C0C0C0 !important; font-size: 15px !important; }
.rank-3 { color: #CD7F32 !important; font-size: 14px !important; }

img { background: transparent !important; }

/* Progress Bar Styling */
.progress-container {
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-fill {
    height: 100%;
    background: #F5BE68;
    border-radius: 5px;
    transition: width 0.3s ease;
}

/* Header/Footer Tools */
.hs-footer-tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 5px;
}

.btn-hs {
    background: #B7A07C;
    color: #FFF !important;
    border: none;
    padding: 4px 12px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 11px;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s, transform 0.1s;
}

.btn-hs:hover {
    background: #F5BE68 !important;
    transform: scale(1.02);
}

/* FOOTER ABOVE HIGHSCORE */
#footer {
    background: url("/styles/default/images/footer.png") no-repeat scroll center top transparent;
    width: 1028px;
    height: 133px;
    margin: 0 auto;
    position: relative;
    top: -34px; /* Adjusted to -34px */
    z-index: 50; 
    clear: both;
}

#copyright {
    top: 43px;
    text-align: center;
    width: 100%;
    left: 0;
    position: relative;
    pointer-events: auto !important;
}

#copyright p {
    margin: 0;
    padding: 0; 
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    color: #B7A07C;
}

#copyright a {
    color: #B7A07C;
    text-decoration: none;
    transition: color 600ms;
}

#copyright a:hover {
    color: #F5BE68;
    text-decoration: none;
}

/* Shiny effect for 200m XP */
.shiny {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1), inset 0 0 10px rgba(255, 255, 255, 0.05) !important;
}

.shiny-gold {
    border: 1px solid rgba(255, 215, 0, 0.6) !important;
    background: rgba(255, 215, 0, 0.05) !important;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2), inset 0 0 10px rgba(255, 215, 0, 0.05) !important;
}

.shiny-silver {
    border: 1px solid rgba(192, 192, 192, 0.6) !important;
    background: rgba(192, 192, 192, 0.05) !important;
    box-shadow: 0 0 15px rgba(192, 192, 192, 0.2), inset 0 0 10px rgba(192, 192, 192, 0.05) !important;
}

.shiny-bronze {
    border: 1px solid rgba(205, 127, 50, 0.6) !important;
    background: rgba(205, 127, 50, 0.05) !important;
    box-shadow: 0 0 15px rgba(205, 127, 50, 0.2), inset 0 0 10px rgba(205, 127, 50, 0.05) !important;
}

/* Overall Top 3 Celebrations */
@keyframes rowCelebrate {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

@keyframes pulseGold {
    0%, 100% { box-shadow: inset 0 0 10px rgba(255, 215, 0, 0.1); }
    50% { box-shadow: inset 0 0 20px rgba(255, 215, 0, 0.3), 0 0 10px rgba(255, 215, 0, 0.2); }
}
@keyframes pulseSilver {
    0%, 100% { box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1); }
    50% { box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.3), 0 0 10px rgba(255, 255, 255, 0.2); }
}
@keyframes pulseBronze {
    0%, 100% { box-shadow: inset 0 0 10px rgba(205, 127, 50, 0.1); }
    50% { box-shadow: inset 0 0 20px rgba(205, 127, 50, 0.3), 0 0 10px rgba(205, 127, 50, 0.2); }
}

.rank-overall-1 {
    background: rgba(255, 215, 0, 0.1) !important;
    border-top: 1px solid rgba(255, 215, 0, 0.2) !important;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2) !important;
    box-shadow: inset 0 0 15px rgba(255, 215, 0, 0.05) !important;
    position: relative;
}

.rank-overall-2 {
    background: rgba(255, 255, 255, 0.08) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.05) !important;
    position: relative;
}

.rank-overall-3 {
    background: rgba(205, 127, 50, 0.08) !important;
    border-top: 1px solid rgba(205, 127, 50, 0.15) !important;
    border-bottom: 1px solid rgba(205, 127, 50, 0.15) !important;
    box-shadow: inset 0 0 15px rgba(205, 127, 50, 0.05) !important;
    position: relative;
}

/* Profile Name Animations */
@keyframes nameShimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.name-anim-mod {
    background: linear-gradient(90deg, #B7A07C, #C0C0C0, #FFFFFF, #C0C0C0, #B7A07C);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: nameShimmer 6s linear infinite;
}

.name-anim-admin {
    background: linear-gradient(90deg, #B7A07C, #FFD700, #FFF2B2, #FFD700, #B7A07C);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: nameShimmer 6s linear infinite;
}

.name-anim-support {
    background: linear-gradient(90deg, #B7A07C, #2a68ff, #8cb0ff, #2a68ff, #B7A07C);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: nameShimmer 6s linear infinite;
}

.name-anim-iron {
    background: linear-gradient(90deg, #B7A07C, #CCC, #FFF, #CCC, #B7A07C);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: nameShimmer 8s linear infinite;
}

.name-anim-hc {
    background: linear-gradient(90deg, #B7A07C, #800000, #ff4d4d, #800000, #B7A07C);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: nameShimmer 8s linear infinite;
}
/* Shiny Text Effect for 200m XP */
@keyframes goldReflect {
    0% { background-position: 100% center; }
    100% { background-position: -100% center; }
}

@keyframes goldBreathe {
    0%, 100% { 
        filter: brightness(100%);
        text-shadow: 0 0 1px rgba(255, 215, 0, 0.1), 1px 1px 1px rgba(0, 0, 0, 0.1);
    }
    50% { 
        filter: brightness(108%);
        text-shadow: 0 0 4px rgba(255, 215, 0, 0.3);
    }
}

.shiny-text {
    background: linear-gradient(to bottom, #FFF2B2 0%, #FFD700 50%, #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    display: inline-block;
    font-weight: bold;
    animation: goldBreathe 4s ease-in-out infinite;
}
