:root {
    --bg-dark: #08080a;
    --bg-panel: #141418;
    --cell-bg: #121216;
    --text-primary: #e0e0e0;
    --accent-gold: #ffbd4a;
    --accent-gold-glow: rgba(255, 189, 74, 0.7);
    --accent-gold-intense: rgba(255, 170, 40, 0.9);
    --accent-blue: #5078ff;
    --accent-blue-glow: rgba(80, 120, 255, 0.7);
    --accent-blue-intense: rgba(60, 100, 255, 0.9);
    --ban-red: #e71d36;
    --ban-bg: #2a0a0a;
}

body {
    margin: 0;
    background: linear-gradient(135deg, #050507 0%, #0a0a10 100%);
    color: var(--text-primary);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-align: center;
    min-height: 100vh;
    overflow-x: hidden;
}

body.with-nav {
    padding-top: 80px;
}

.container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    padding: 0 20px;
    max-width: 100%;
    margin: 0 auto;
}

.side-column {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 220px; 
    min-width: 220px;
    flex-shrink: 0;
    margin-top: -165px;
    z-index: 60; 
}

.claim-btn, .ready-btn {
    background: transparent;
    border: 2px solid #444; color: #888;
    padding: 12px 10px; font-size: 14px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px;
    cursor: pointer; transition: all 0.3s ease;
    width: 100%; border-radius: 4px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    margin-bottom: 10px;
}

.claim-btn:hover:not(:disabled), .ready-btn:hover:not(:disabled) {
    border-color: #fff; color: #fff; background: rgba(255,255,255,0.05);
}

.claim-btn.team-a:hover:not(:disabled), .ready-btn.team-a { 
    border-color: var(--accent-gold); color: var(--accent-gold); 
}
.claim-btn.team-b:hover:not(:disabled), .ready-btn.team-b { 
    border-color: var(--accent-blue); color: #8da4ff; 
}

.claim-btn:disabled, .ready-btn:disabled {
    border-color: #333; color: #444; background: rgba(0,0,0,0.5);
    cursor: not-allowed; box-shadow: none;
}
.ready-btn.pressed {
    background: #333; color: #888; border-color: #555;
}

.timeline-container {
    height: 300px; 
    display: flex; justify-content: center; align-items: center; 
    margin: 0 auto; width: 60%; max-width: 800px;
    position: relative; z-index: 50;
}

.draft-logo {
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 56px;
    font-weight: 900;
    letter-spacing: 2px;
    background: linear-gradient(to bottom, #ffffff 30%, #999999 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 50px rgba(255, 189, 74, 0.15);
    z-index: 100;
    white-space: nowrap;
    

    pointer-events: auto; 
    cursor: pointer;     
    text-decoration: none;
    transition: transform 0.2s;
}
.draft-logo:hover {
    transform: translateX(-50%) scale(1.05);
}

.timeline-step {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    flex: 0 1 50px; aspect-ratio: 3 / 4; 
    max-width: 55px; min-width: 25px;
    background: var(--cell-bg); margin: 0 3px;
    border-radius: 3px; position: relative;
    color: #555; font-size: 10px; font-weight: 800;
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid #2a2a30; 
}

.timeline-step.type-pick::after { content: 'PICK'; letter-spacing: 1px; }
.timeline-step.type-ban::after { content: 'BAN'; color: #922; }

.timeline-step.completed::after {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    font-size: 10px;
    font-weight: 900;
    text-shadow: 0 0 4px #000, 0 0 2px #000;
    pointer-events: none;
}
.timeline-step.completed.type-pick::after { 
    content: 'PICK'; 
    color: #fff; 
    background: rgba(0, 0, 0, 0.4); 
    padding: 2px 4px; border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}
.timeline-step.completed.type-ban::after { 
    content: 'BAN'; 
    color: #ff6666; 
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 4px; border-radius: 2px;
    border: 1px solid rgba(255, 50, 50, 0.3);
}

.timeline-step::before {
    content: ''; position: absolute; left: 50%; transform: translateX(-50%);
    border-style: solid; border-color: transparent; border-width: 5px; 
    opacity: 0; transition: opacity 0.3s;
}
.timeline-step.team-a::before { top: -10px; border-bottom-color: inherit; }
.timeline-step.team-b::before { bottom: -10px; border-top-color: inherit; }
.timeline-step.active::before { opacity: 1; }

.timeline-step.team-a {
    border-top: 4px solid rgba(255, 190, 80, 0.8); border-bottom: 0;
    background: linear-gradient(to bottom, rgba(255, 190, 80, 0.25), transparent 80%);
    box-shadow: 0 -50px 70px -10px rgba(255, 170, 40, 0.4);
}
.timeline-step.team-b {
    border-bottom: 4px solid rgba(80, 120, 255, 0.8); border-top: 0;
    background: linear-gradient(to top, rgba(80, 120, 255, 0.3), transparent 80%);
    box-shadow: 0 50px 70px -10px rgba(60, 100, 255, 0.5);
}

.timeline-step.active {
    transform: scale(1.4); z-index: 100;
    color: #fff; background: #222; border-color: #fff;
}
.timeline-step.active.team-a {
    border-top-width: 5px; border-top-color: var(--accent-gold);
    box-shadow: 0 -15px 30px var(--accent-gold-intense), 0 -40px 60px 10px var(--accent-gold-glow);
}
.timeline-step.active.team-b {
    border-bottom-width: 5px; border-bottom-color: var(--accent-blue);
    box-shadow: 0 15px 30px var(--accent-blue-intense), 0 40px 60px 10px var(--accent-blue-glow);
}

.timeline-step.completed {
    background: #080808; border-color: #333; color: transparent; box-shadow: none; opacity: 0.5;
}
.timeline-step.completed.type-ban { background: #1a0505; opacity: 0.3; }

.team-box {
    width: 100%; background: var(--bg-panel); padding: 15px;
    min-height: 600px; border-radius: 12px; border: 1px solid #333;
    position: relative; box-shadow: inset 0 0 30px rgba(0,0,0,0.5);
}
.team-title {
    font-size: 26px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px;
    margin: 0 0 10px 0; text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}
#team-a-box { border-top: 3px solid var(--accent-gold); box-shadow: 0 -10px 20px -5px rgba(255, 215, 0, 0.15), inset 0 0 30px rgba(0,0,0,0.5); }
#team-b-box { border-top: 3px solid var(--accent-blue); box-shadow: 0 -10px 20px -5px rgba(0, 100, 255, 0.15), inset 0 0 30px rgba(0,0,0,0.5); }

.team-picks-grid {
    display: flex;
    flex-wrap: wrap; 
    justify-content: flex-start;
    align-content: flex-start;
    gap: 10px;
    width: 100%;
    padding-left: 2px; 
}

.hero-grid {
    flex-grow: 0; width: 1000px;
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-content: start;
    padding: 20px; background: rgba(255,255,255,0.015);
    border-radius: 16px; border: 1px solid rgba(255,255,255,0.05);
}

.hero-card {
    width: 90px;
    height: 145px;
    background-color: #15151a; 
    background-size: cover; 
    background-position: top center;
    border: 2px solid #333; 
    border-radius: 4px;
    display: flex; align-items: flex-end; justify-content: center;
    cursor: pointer; position: relative; overflow: hidden;
    transition: all 0.2s ease-out; box-shadow: 0 4px 8px rgba(0,0,0,0.5);
}

.hero-name-label {
    width: 100%; background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, transparent 100%);
    color: #eee; font-size: 11px; font-weight: 700;
    text-align: center; padding: 6px 0 4px 0;
}

.hero-card:hover {
    transform: scale(1.15); z-index: 50; border-color: #fff;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
}

.hero-card.banned { filter: grayscale(100%); opacity: 0.4; pointer-events: none; background-color: #200; }
.hero-card.picked { filter: grayscale(80%); opacity: 0.6; pointer-events: none; border-color: #555; }

.hero-card.in-sidebar {
    cursor: default; 
    transform: none !important;
    animation: fadeInCard 0.4s ease-out;
}
.hero-card.in-sidebar:hover { transform: none; box-shadow: 0 4px 8px rgba(0,0,0,0.5); }

.hero-card.in-sidebar.team-a { border-color: var(--accent-gold); box-shadow: 0 0 15px rgba(255, 189, 74, 0.2); }
.hero-card.in-sidebar.team-b { border-color: var(--accent-blue); box-shadow: 0 0 15px rgba(80, 120, 255, 0.2); }

@keyframes fadeInCard {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.timer-box { 
    margin-bottom: 15px; 
    background: transparent; 
    min-height: 55px;
    transition: opacity 0.3s;
}
.timer-box.inactive {
    opacity: 0; 
}

.main-timer { font-size: 36px; font-weight: 900; color: #fff; text-shadow: 0 0 10px rgba(0,0,0,0.5); }
.reserve-timer { font-size: 12px; color: #888; margin-top: 5px; font-weight: 600; letter-spacing: 1px; }

.hidden { display: none !important; }



.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(10, 10, 12, 0.95);
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    z-index: 1000;
    backdrop-filter: blur(5px);
    box-sizing: border-box;
}

.nav-brand {
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
    text-decoration: none;
    z-index: 2;
    position: static;
    transform: none;
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 40px;
}

.nav-link {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 10px 0;
    position: relative;
    border-bottom: none;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--accent-gold, #ffbd4a);
    transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
}


.discord-btn svg {
    display: block;
    margin: 0;
}

.discord-btn:hover {
    background-color: #4752C4;
}

.discord-btn::after {
    display: none !important;
}
