@import url('https://fonts.googleapis.com/css2?family=Times+New+Roman:wght@400;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --poop-brown: #A67C5D;
    --gold: #E8C87A;
    --white: #ffffff;
    --black: #0F0F0F;
    --dark-bg: #1A140F;
    --card-bg: #2A221B;
    --accent: #E8C87A;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: linear-gradient(180deg, #1A140F 0%, #0F0F0F 100%);
    color: #fff;
    overflow-x: hidden;
    min-height: 100vh;
}

/* HEADER */
header {
    position: fixed; top: 0; left: 0; right: 0;
    height: 80px;
    background: rgba(26, 20, 15, 0.95);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    padding: 0 30px;
    z-index: 1000;
    border-bottom: 1px solid rgba(232, 200, 122, 0.2);
}

.hamburger {
    font-size: 34px;
    cursor: pointer;
    color: var(--white);
    transition: all 0.3s ease;
}
.hamburger:hover { color: var(--accent); transform: scale(1.1); }

.logo-small {
    margin-left: 25px;
    font-family: 'Times New Roman', serif;
    font-size: 26px;
    font-weight: bold;
    letter-spacing: -1px;
}

/* ✅ CORRIGIDO: Poop agora fica castanho */
.poop-small { color: var(--poop-brown); }
.poop-text  { color: var(--poop-brown); }
.tube-small { color: var(--white); }
.tube-text  { color: var(--white); }

/* SIDEBAR */
.sidebar {
    position: fixed;
    top: 80px;
    left: -340px;
    width: 320px;
    height: calc(100vh - 80px);
    background: #2A221B;
    box-shadow: 15px 0 40px rgba(0,0,0,0.7);
    transition: left 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    padding: 40px 25px;
    z-index: 999;
    border-right: 1px solid rgba(232, 200, 122, 0.15);
}
.sidebar.active { left: 0; }

.sidebar li {
    padding: 20px 25px;
    font-size: 1.35rem;
    font-weight: 600;
    border-radius: 16px;
    margin-bottom: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 18px;
    color: #E8D9C2;
}
.sidebar li:hover {
    background: var(--accent);
    color: #1A140F;
    transform: translateX(8px);
}

/* HOMEPAGE */
#home {
    padding-top: 140px;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.title {
    font-family: 'Times New Roman', serif;
    font-size: 168px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -12px;
    display: flex;
    align-items: center;
    text-shadow: 0 15px 40px rgba(166, 124, 93, 0.4);
}

.welcome {
    font-size: 32px;
    font-weight: 500;
    color: #E8D9C2;
    margin-top: 30px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.subtitle {
    font-size: 1.25rem;
    max-width: 620px;
    margin: 40px auto 0;
    opacity: 0.85;
    line-height: 1.5;
}

/* LEADERBOARD */
#leaderboard {
    padding-top: 100px;
    display: none;
    flex-direction: column;
    min-height: 100vh;
    background: #1A140F;
}

.leaderboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px 25px;
}

.back-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.tabs {
    display: flex;
    gap: 10px;
    background: #2A221B;
    padding: 8px;
    border-radius: 9999px;
    width: fit-content;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.tab {
    padding: 16px 40px;
    border-radius: 9999px;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}
.tab.active {
    background: var(--accent);
    color: #1A140F;
    box-shadow: 0 0 25px var(--accent);
}
.tab.locked {
    opacity: 0.35;
    cursor: not-allowed;
    position: relative;
}
.tab.locked::after {
    content: "🔒";
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 20px;
}

/* TOP 3 CARDS */
.top-3 {
    display: flex;
    gap: 35px;
    justify-content: center;
    padding: 40px 20px;
    flex-wrap: wrap;
}

.top-card {
    background: var(--card-bg);
    border-radius: 24px;
    width: 320px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 2px solid transparent;
}
.top-card:hover { transform: translateY(-15px); }
.top-card.center {
    transform: scale(1.12);
    box-shadow: 0 35px 70px rgba(232, 200, 122, 0.35);
    z-index: 10;
    border-color: var(--accent);
}

.rank-badge {
    position: absolute;
    top: -18px;
    left: 24px;
    background: var(--gold);
    color: #1A140F;
    font-size: 22px;
    font-weight: 800;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px var(--gold);
}

.avatar {
    width: 128px;
    height: 128px;
    border-radius: 22px;
    object-fit: cover;
    margin: 0 auto 22px;
    border: 7px solid var(--accent);
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.name { font-size: 1.85rem; margin-bottom: 10px; font-weight: 700; }

.earn {
    background: rgba(232, 200, 122, 0.15);
    color: var(--gold);
    padding: 8px 28px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    margin-bottom: 22px;
    font-weight: 600;
}

.prize {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    font-size: 2.3rem;
    font-weight: 700;
}
.prize span { color: var(--accent); }

/* TABELA */
.table-container { padding: 0 40px 70px; }

table {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

thead { background: #3A2F25; }

th {
    padding: 26px 24px;
    text-align: left;
    font-size: 1.15rem;
    color: var(--accent);
    font-weight: 700;
}

td {
    padding: 20px 24px;
    border-top: 1px solid rgba(232, 200, 122, 0.1);
}

.row-user {
    display: flex;
    align-items: center;
    gap: 18px;
}

.row-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--poop-brown);
}

.medalha-merda {
    background: linear-gradient(90deg, #8B5A2B, #5C3A1F);
    color: #fff;
    padding: 6px 22px;
    border-radius: 9999px;
    font-size: 1.15rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.leaderboard-footer {
    text-align: center;
    padding: 30px;
    color: #C8B8A0;
    font-size: 1.25rem;
}