/* ============ VARIABLES ============ */
:root {
    --bg-primary: #2f1b1b;
    --bg-secondary: #241414;
    --bg-dark: #1a0f0f;
    --text-primary: #d9c3ac;
    --text-muted: #a88e78;
    --accent: #a67c52;
    --accent-light: #c9a06c;
    --accent-dark: #6b4f35;
    --glow: rgba(166, 124, 82, 0.3);
    --cream: #f0e2c4;
    --gold-b: #e9c87e;
    --line2: rgba(201, 164, 92, 0.3);
    --muted2: #a8946f
}

/* ============ BASE & THEME ============ */
html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Ubuntu', sans-serif;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

.projects-panel {
    flex: 1 0 auto;
}

/* ============ PARALLAX BACKGROUND ============ */
.parallax-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 120vh;
    background-image: url('/img/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
    will-change: transform;
}

.parallax-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(47, 27, 27, 0.75);
    z-index: -1;
    pointer-events: none;
}

/* ============ NAVBAR ============ */
#mainNav {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-dark) 100%);
    border-bottom: 1px solid var(--accent-dark); 
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.navbar-brand {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1.6rem;
    color: var(--text-primary) !important;
    text-shadow: 0 0 10px rgba(217, 195, 172, 0.2);
    letter-spacing: 1px;
    align-self: center;
    transition: all 0.35s ease;
}

.navbar-brand:hover {
    color: var(--accent-light) !important;
    text-shadow: 0 0 8px var(--glow);
}

.nav-link {
    font-family: 'Cinzel', serif;
    color: var(--text-primary) !important;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-light) !important;
    text-shadow: 0 0 8px var(--glow);
}

.nav-logo {
    display: inline-block;
    width: 3.1rem; height: 3.1rem;
    background: url('/img/logo60c1.png') center / contain no-repeat;
    transition: background-image 0.35s ease;
}

.navbar-brand:hover .nav-logo {
    background: url('/img/logo60c2.png') center / contain no-repeat;
}

/* ============ STEAM LOGIN BUTTON (SHARED LOGIC) ============ */
.steam-login-btn, .steam-login-btn-modal {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--text-primary);
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-dark));
    border: 1px solid var(--accent-dark);
    border-radius: 0; 
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex; 
    align-items: center; justify-content: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.steam-login-btn i, .steam-login-btn-modal i {
    color: var(--gold-b);
    display: flex; align-items: center; line-height: 1; 
    transition: all 0.3s ease;
}

.steam-login-btn:hover, .steam-login-btn-modal:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    box-shadow: 0 0 15px var(--glow);
    transform: translateY(-1px);
    text-decoration: none;
    background: linear-gradient(145deg, var(--bg-secondary), #2a1a1a);
}

.steam-login-btn:hover i, .steam-login-btn-modal:hover i {
    color: #fff; 
    text-shadow: 0 0 8px var(--gold-b); 
}

/* Steam Specific Sizing (Navbar) */
.steam-login-btn {
    white-space: nowrap;
    font-size: 0.9rem;
    letter-spacing: 1px;
    padding: 12px 22px;
}
.steam-login-btn i { font-size: 1.1rem; }

/* Steam Specific Sizing (Modal) */
.steam-login-btn-modal {
    font-size: 1.2rem; 
    padding: 15px 30px; 
    width: 80%; 
    max-width: 400px;
    margin-top: 10px;
    letter-spacing: 1px;
}
.steam-login-btn-modal i { font-size: 1.5rem; }


/* ============ JUMBOTRON ============ */
.jumbotron {
    background-image: url('/img/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid var(--accent-dark); 
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jumbotron::after {
    content: ''; position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at center, transparent 40%, rgba(20,10,10,0.45) 100%);
    pointer-events: none;
    z-index: 1;
}

.jumbotron .WelcBox {
    position: relative; z-index: 2;
}

.jumbotron-heading {
    font-family: 'Cinzel Decorative', serif;
    font-weight: 700;
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(0,0,0,0.8), 0 0 20px rgba(217, 195, 172, 0.15);
    letter-spacing: 3px;
}

.jumbotron .lead {
    font-family: 'Cinzel', serif;
    color: var(--text-primary) !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

/* ============ MAIN 3-COLUMN LAYOUT ============ */
.main-layout {
    display: flex;
    width: 75%;
    margin: 0 auto; gap: 20px;
    padding: 0;
    align-items: flex-start;
    flex: 1 0 auto;
}

.sidebar-left, .sidebar-right {
    flex: 0 0 18%; 
    box-sizing: border-box; 
    display: flex;
    flex-direction: column;
    gap: 25px;
    padding: 30px 0;
}

.center-panel {
    flex: 0 0 64%;
    box-sizing: border-box;
    min-width: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
}

/* ============ PROJECTS PANEL ============ */
.projects-panel {
    border-left: 1px solid var(--accent-dark); 
    border-right: 1px solid var(--accent-dark); 
    border-bottom: 1px solid var(--accent-dark); 
    background: linear-gradient(180deg, rgba(36,20,20,0.92) 0%, rgba(26,15,15,0.92) 100%);
    padding: 0 30px 30px 30px;
    height: 100%;
}

/* ============ SIDE PANELS ============ */
.side-panel {
    background: linear-gradient(145deg, var(--bg-secondary) 0%, var(--bg-dark) 100%);
    border: 1px solid var(--accent-dark);
    position: relative;
}

.side-panel .border-glow {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 1;
    box-shadow: inset 0 0 16px rgba(166, 124, 82, 0.06);
}

.side-panel-header {
    font-family: 'Cinzel Decorative', serif;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--text-primary);
    text-align: center;
    padding: 8px 12px 11px 12px;
    background: linear-gradient(90deg, transparent 0%, rgba(166,124,82,0.10) 50%, transparent 100%);
    letter-spacing: 2px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    position: relative;
    border-bottom: none;
}

.side-panel-header::after {
    content: ''; position: absolute;
    bottom: 2px; left: 50%; transform: translateX(-50%);
    width: 48%; height: 1px; 
    background: radial-gradient(ellipse at center, var(--accent) 0%, var(--accent-dark) 35%, transparent 70%);
    pointer-events: none;
}

.side-panel-body {
    padding: 12px;
}

/* ============ SIDE MENU ITEM ============ */
.side-menu-item {
    display: block;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    text-decoration: none;
    padding: 6px 16px;
    margin-bottom: 6px;
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-dark));
    border: 1px solid var(--accent-dark);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
    cursor: pointer;
}

.side-menu-item::before {
    content: ''; position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(166, 124, 82, 0.12), transparent);
    transition: left 0.5s ease;
}

.side-menu-item:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    box-shadow: 0 0 15px var(--glow), inset 0 1px 0 rgba(255,255,255,0.05);
    transform: translateY(-1px);
    text-decoration: none;
}

.side-menu-item:hover::before { left: 100%; }

/* ============ ACCOUNT MANAGER (NEW) ============ */
.account-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(166, 124, 82, 0.2);
}

.steam-avatar {
    width: 50px; height: 50px;
    border-radius: 4px; /* Matches UI sharpness */
    border: 1px solid var(--accent);
    object-fit: cover;
    box-shadow: 0 0 10px rgba(166, 124, 82, 0.2);
}

.account-info {
    flex: 1;
    display: flex; flex-direction: column; gap: 4px;
    overflow: hidden;
}

.account-name {
    font-family: 'Cinzel', serif; font-weight: 700;
    color: var(--text-primary); font-size: 1.15rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.account-status {
    font-family: 'Ubuntu', sans-serif;
    color: var(--accent-light); font-size: 0.8rem; letter-spacing: 0.5px;
}

.account-links {
    display: flex; flex-direction: row; gap: 5px;
    justify-content:  space-between;  
    margin-bottom: 12px; text-align: center;
}

/* ============ FORMS & INPUTS ============ */
.side-panel input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 8px var(--glow); }

.checkbox-label {
    font-family: 'Ubuntu', sans-serif;
    color: var(--text-muted);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    appearance: none; -webkit-appearance: none;
    width: 14px; height: 14px;
    background: var(--bg-dark);
    border: 1px solid var(--accent-dark);
    border-radius: 0;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-label input:hover { border-color: var(--accent); box-shadow: 0 0 6px var(--glow); }
.checkbox-label input:checked { background: var(--accent-dark); border-color: var(--accent); }
.checkbox-label input:checked::after {
    content: ''; position: absolute;
    left: 3px; top: 0px;
    width: 4px; height: 8px;
    border: solid var(--text-primary);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.panel-link {
    display: block; text-align: center;
    font-family: 'Cinzel', serif;
    color: var(--accent-light);
    font-size: 0.84rem;
    text-decoration: none;
    margin-top: 5px;
    transition: all 0.3s ease;
}
.panel-link:hover { color: var(--text-primary); text-shadow: 0 0 8px var(--glow); text-decoration: none; }

/* ============ MMO LANDING STYLES ============ */
.page-title {
    text-align: center;
    margin-bottom: 2.5rem;
    position: relative;
    padding-top: 1rem;
    font-family: 'Cinzel Decorative', serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text-primary);
    letter-spacing: 2px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.page-title::after {
    content: ''; position: absolute;
    bottom: 2px; left: 50%; transform: translateX(-50%);
    width: 350px; height: 1px; 
    background: radial-gradient(ellipse at center, var(--accent) 0%, var(--accent-dark) 35%, transparent 70%);
    pointer-events: none;
}

.lore-box {
    background: rgba(0,0,0,0.1);
    border: 1px solid var(--accent-dark);
    padding: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.lore-box::before {
    font-family: 'Cinzel Decorative', serif;
    font-size: 4rem;
    position: absolute;
    top: -20px; left: 20px;
    color: rgba(166, 124, 82, 0.2);
}

.lore-text { font-size: 1.1rem; line-height: 1.8; color: var(--muted2); }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 3rem;
}

.feature-item {
    background: linear-gradient(145deg, rgba(36,20,20,0.5), rgba(26,15,15,0.5));
    border: 1px solid var(--accent-dark);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.feature-item:hover {
    border-color: var(--accent);
    background: rgba(166, 124, 82, 0.05);
    transform: translateY(-3px);
}

.feature-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.feature-desc { font-size: 0.85rem; color: var(--muted2); line-height: 1.5; }

.classes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 3rem;
}

.class-card {
    position: relative;
    border: 1px solid var(--accent-dark);
    overflow: hidden;
    background: var(--bg-dark);
    cursor: pointer;
    transition: all 0.4s ease;
}

.class-card:hover {
    border-color: var(--gold-b);
    box-shadow: 0 0 20px rgba(233, 200, 126, 0.2);
    transform: scale(1.05);
    z-index: 2;
}

.class-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    filter: sepia(0.6) contrast(1.1);
    transition: all 0.4s ease;
}

.class-card:hover .class-img { filter: sepia(0) contrast(1.2); }

.class-info {
    padding: 10px;
    text-align: center;
    border-top: 1px solid var(--accent-dark);
    background: linear-gradient(to bottom, var(--bg-secondary), var(--bg-dark));
}

.class-name {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--gold-b);
}

.class-role {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cta-section { text-align: center; padding: 3rem 1rem; }

.cta-btn {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.1rem;
    padding: 12px 40px;
    background: var(--accent-dark);
    color: var(--cream);
    border: 1px solid var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(166, 124, 82, 0.2);
}

.cta-btn:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 25px var(--glow);
    transform: translateY(-2px);
}

/* ============ FANTASY BUTTONS (Non-Steam) ============ */
.fantasy-btn {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.94rem;
    letter-spacing: 1.5px;
    color: var(--text-primary);
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-dark));
    border: 1px solid var(--accent-dark);
    padding: 6px 16px;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.fantasy-btn::before {
    content: ''; position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(166, 124, 82, 0.12), transparent);
    transition: left 0.5s ease;
}

.fantasy-btn:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    box-shadow: 0 0 15px var(--glow), inset 0 1px 0 rgba(255,255,255,0.05);
    transform: translateY(-1px);
}

.fantasy-btn:hover::before { left: 100%; }

/* ============ NEWS & LEADERBOARD ============ */
.latest-panel {
    margin-top: 1.5rem;
    font-family: 'Cinzel', serif;
    background: linear-gradient(180deg, #2f1b1b, #1a0f0f);
    border: 1px solid var(--accent-dark);
    box-shadow: inset 0 0 0 1px rgba(201, 164, 92, .07), 0 12px 34px rgba(0, 0, 0, .5);
    position: relative;
    padding: 16px 0;
}

.news {
    display: flex; gap: 16px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(201, 164, 92, .12);
}
.news:last-of-type { border-bottom: none; }

.news-date {
    flex-shrink: 0; width: 56px; height: 60px;
    border: 1px solid var(--line2);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: rgba(0, 0, 0, .3);
}
.news-date span { font-size: 20px; font-weight: 700; color: var(--gold-b); line-height: 1; }
.news-date small { font-size: 9.5px; letter-spacing: .22em; color: var(--text-muted); margin-top: 3px; text-transform: uppercase; }

.news h4 { font-size: 15px; letter-spacing: .06em; color: var(--cream); margin-bottom: 4px; }
.news p { font-size: 15px; color: var(--muted2); line-height: 1.45; margin: 0; }

.leaderboard-section { margin-bottom: 12px; }

.leaderboard-section-title {
    font-family: 'Cinzel', serif; font-size: 1.15rem;
    color: var(--accent-light); text-align: center;
    padding: 6px 0; border-bottom: 1px solid rgba(166, 124, 82, 0.2);
    margin-bottom: 6px; letter-spacing: 1px;
}

.leaderboard-list { list-style: none; padding: 0; margin: 0 0 8px 0; }

.leaderboard-list li {
    font-family: 'Ubuntu', sans-serif; font-size: 0.72rem; color: var(--text-muted);
    padding: 4px 0; border-bottom: 1px solid rgba(166, 124, 82, 0.1);
    display: grid; grid-template-columns: 20px minmax(60px, 1fr) 1fr 55px;
    align-items: center; gap: 5px; white-space: nowrap;
}
.leaderboard-list li:last-child { border-bottom: none; }
.leaderboard-list .rank { color: var(--accent); font-weight: 700; }
.leaderboard-list a { text-decoration: none; transition: all 0.2s ease-in-out; display: block; width: 100%; }
.leaderboard-list a:hover { text-decoration: underline; }

.leaderboard-list .player-link, .leaderboard-list .guild-link {
    color: var(--text-primary); font-weight: 500; overflow: hidden; text-overflow: ellipsis;
}
.leaderboard-list .player-link:hover, .leaderboard-list .guild-link:hover {
    color: var(--accent-light); text-shadow: 0 0 8px var(--glow);
}
.leaderboard-list .world-link {
    font-size: 13px; color: var(--gold-b); cursor: pointer; text-align: center; overflow: hidden; text-overflow: ellipsis;
}
.leaderboard-list .world-link:hover { color: #fff; text-shadow: 0 0 8px var(--gold-b); }
.leaderboard-list .rank-lv { font-size: 13px; color: #6b4f35; font-style: italic; text-align: right; }

/* Status Styles */
.status-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 5px 0; border-bottom: 1px solid rgba(166, 124, 82, 0.15);
    font-family: 'Ubuntu', sans-serif; font-size: 0.75rem; color: var(--text-muted);
}
.status-row:last-child { border-bottom: none; }
.status-row .status-label { color: var(--text-primary); font-weight: 500; }
.status-row .status-value { display: flex; align-items: center; gap: 5px; }

/* Fixed: Added animation property */
.dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #4a9b4a; box-shadow: 0 0 6px rgba(74, 155, 74, 0.5);
    animation: pulse 2s infinite;
}
.ok { color: var(--green); font-family: Cinzel; font-size: 11px; letter-spacing: .14em; }

/* ============ HERO CONTENT ANIMATIONS ============ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .35; }
}

.animate-entry { opacity: 0; animation: fadeUp 0.8s ease-out forwards; }
.delay-1 { animation-delay: 0.2s; } .delay-2 { animation-delay: 0.4s; } .delay-3 { animation-delay: 0.6s; }

.hero-content {
    font-family: 'Cinzel', serif; position: relative; z-index: 3; text-align: center; padding: 0 20px;
}

.hero-content h1 {
    font-family: 'Cinzel Decorative', serif; font-weight: 900;
    font-size: clamp(54px, 8vw, 100px); letter-spacing: .1em; color: var(--cream);
    text-shadow: 0 0 44px rgba(255,180,90,.35), 0 4px 18px rgba(0,0,0,.8);
    margin: 6px 0 2px; animation: fadeUp .9s .25s both;
}
.hero-content h1 em { font-style: normal; color: var(--gold-b); }

.hero-kicker { color: var(--accent); animation: fadeUp .9s .32s both; }
.hero-sub { max-width: 600px; margin: 6px auto 28px; animation: fadeUp .9s .4s both; }

.hero-stats {
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 36px;
    animation: fadeUp .9s .7s both;
}

.chip {
    display: flex; align-items: center; gap: 9px; padding: 8px 18px;
    border: 1px solid var(--line2); background: rgba(12, 8, 6, .6);
    font-size: 12px; letter-spacing: .14em; color: var(--text-primary);
}
.chip b { color: var(--gold-b); margin-left: 6px; }

/* ============ MODAL ============ */
.modal-backdrop { background-color: #000; }
.modal-backdrop.show { opacity: 0.85; }
.modal-ultrawide { width: 95vw; max-width: 1100px; aspect-ratio: 20 / 9; margin: 0 auto; }

.fantasy-modal-content {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-dark) 100%);
    border: 1px solid var(--accent);
    box-shadow: 0 0 50px rgba(0,0,0,0.9), inset 0 0 20px rgba(0,0,0,0.5);
    color: var(--text-primary);
    display: flex; flex-direction: column;
    transform: scale(0.95); opacity: 0;
    transition: transform 0.25s ease-out, opacity 0.25s ease-out;
}
.modal.show .fantasy-modal-content { transform: scale(1); opacity: 1; }

.modal-body { padding: 40px 40px 20px 40px; flex-grow: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.modal-text-box { margin-bottom: 25px; font-family: 'Ubuntu', sans-serif; font-size: 1.1rem; line-height: 1.6; color: var(--text-primary); max-width: 800px; }

/* Matching Footer Links inside Modal */
.modal-link-style { 
    font-family: 'Cinzel', serif !important; text-transform: uppercase !important; text-decoration: none !important; 
    color: var(--text-muted) !important; font-size: 0.9rem; letter-spacing: 1px; margin: 0 4px; 
    transition: all 0.3s ease; border-bottom: 1px solid transparent;
}
.modal-link-style:hover { color: var(--accent-light) !important; text-shadow: 0 0 8px var(--glow); border-bottom: 1px solid var(--accent-light); }

.modal-footer-fantasy {
    border-top: 1px solid var(--accent-dark); background: rgba(0,0,0,0.4);
    padding: 0 0 20px 0; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative;
}

/* ============ FOOTER ============ */
footer {
    background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-dark) 100%) !important;
    border-top: 1px solid var(--accent-dark); 
    margin-top: 3rem; padding: 2rem 0;
    color: var(--text-muted); position: relative;
}
footer::after {
    content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 50%; height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent);
    pointer-events: none; opacity: 0.5;
}

.footer-links-horizontal { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0; }
.footer-links-horizontal a {
    font-family: 'Cinzel', serif !important; text-transform: uppercase !important; text-decoration: none !important; 
    color: var(--text-muted) !important; font-size: 0.8rem; letter-spacing: 1px; margin: 0 10px; transition: all 0.3s ease;
}
.footer-links-horizontal a:hover { color: var(--accent-light) !important; text-shadow: 0 0 8px var(--glow); }
.footer-links-horizontal span { color: var(--accent-dark); font-weight: bold; margin: 0 5px; font-size: 0.8rem; }

.footer-social-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; margin-left: 8px; text-decoration: none !important;
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-dark)) !important;
    border: 1px solid var(--accent-dark) !important; color: var(--text-muted) !important;
    border-radius: 0 !important; transition: all 0.3s ease;
}
.footer-social-btn:hover {
    border-color: var(--accent) !important; color: var(--accent-light) !important; background: rgba(166, 124, 82, 0.1) !important;
    text-shadow: 0 0 10px var(--glow); transform: translateY(-2px);
    box-shadow: 0 0 10px var(--glow), inset 0 1px 0 rgba(255,255,255,0.05);
}
/* Custom width for the Steam Modal */
#steamConsentModal .modal-dialog {
    max-width: 50rem; /* Change this number to whatever you want */
}
/* ============ RESPONSIVE ============ */
@media (max-width: 992px) {
    .main-layout { flex-direction: column; width: 95%; }
    .sidebar-left, .sidebar-right { flex: 1 1 auto; width: 100%; }
    .projects-panel { padding: 0 30px 30px 30px; }
    .classes-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-grid { grid-template-columns: 1fr; } 
}

@media (max-width: 768px) {
    .jumbotron { min-height: 400px; }
    .projects-panel { padding: 0 20px 20px 20px; }
    footer .row > div { margin-bottom: 1.5rem; text-align: center !important; }
    .news { flex-wrap: wrap; }
    .news-date { width: 48px; height: 52px; }
    .news-date span { font-size: 18px; }
    .modal-ultrawide { width: 95%; aspect-ratio: unset; height: auto; }
    .footer-links-horizontal { gap: 5px; }
    .footer-links-horizontal span { display: none; }
    .footer-links-horizontal a { margin: 5px 10px; font-size: 0.75rem; }
    .footer-social-btn { margin: 0 5px; }
}

/* Legacy cleanup */
.leaderboard-list .rank-world { color: var(--gold-b); }
.leaderboard-list .rank-r1 { color: #f0c75e; text-shadow: 0 0 10px rgba(240,199,94,.6); }
.leaderboard-list .rank-r2 { color: #c8c8cf; } 
.leaderboard-list .rank-r3 { color: #cd8a4a; }

/* Status Polish */
.status-row { padding: 11px 6px; border-bottom: 1px solid rgba(201,164,92,.15); font-size: 15px; }
.status-row:last-of-type { border-bottom: none; }
.status-name { display: flex; align-items: center; gap: 10px; color: #d9c3ac; letter-spacing: .04em; }