.ranking-page {
    display: flex;
    justify-content: center;
    padding: 2rem 1rem 4rem;
}

.ranking-card {
    width: min(420px, 100%);
    background: #fcfaf7;
    border-radius: 2.5rem;
    overflow: hidden;
    box-shadow: 0 20px 30px rgba(15, 23, 42, 0.08);
    border: 1px solid #f0ede4;
    position: relative;
}

.ranking-header {
    padding: 2rem 2rem 1.5rem;
    background: #ffffff;
    border-bottom: 1px solid #f0ede4;
}

.ranking-header h2 {
    margin: 0;
    font-size: 1.7rem;
    font-weight: 800;
    color: #1f2937;
}

.ranking-header p {
    margin: 0.4rem 0 0;
    color: #64748b;
    font-size: 0.85rem;
}

.ranking-badge {
    display: inline-flex;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: #ffedd5;
    color: #d97706;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.5rem;
}

.ranking-body {
    padding: 1.5rem 1.5rem 6rem;
    background: linear-gradient(180deg, #ffffff 0%, #fcfaf7 45%);
}

.ranking-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 2rem;
}

.podium-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 30%;
}

.podium-avatar {
    width: 64px;
    height: 64px;
    border-radius: 999px;
    background: #fff7ed;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #8b6d31;
    border: 4px solid #fde68a;
}

.podium-item.first .podium-avatar {
    width: 72px;
    height: 72px;
    border-color: #fbbf24;
}

.podium-item.second .podium-avatar {
    border-color: #cbd5f5;
}

.podium-item.third .podium-avatar {
    border-color: #fcd9b8;
}

.podium-crown {
    color: #fbbf24;
    margin-bottom: 0.3rem;
}

.podium-rank {
    margin-top: -0.75rem;
    background: #1f2937;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 2px solid #ffffff;
}

.podium-name {
    margin: 0.5rem 0 0;
    font-weight: 700;
    font-size: 0.85rem;
    color: #1f2937;
}

.podium-points {
    margin: 0.2rem 0 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #d97706;
}

.podium-bar {
    width: 100%;
    height: 60px;
    border-radius: 1rem 1rem 0 0;
    background: #fef3c7;
}

.podium-item.first .podium-bar {
    height: 80px;
}

.podium-item.second .podium-bar {
    height: 55px;
    background: #e2e8f0;
}

.podium-item.third .podium-bar {
    height: 45px;
    background: #ffedd5;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.ranking-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-radius: 1.2rem;
    padding: 0.9rem 1rem;
    border: 1px solid #f1f5f9;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
}

.ranking-left {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.ranking-number {
    width: 24px;
    text-align: center;
    font-weight: 800;
    color: #94a3b8;
}

.ranking-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: #fef3c7;
    color: #8b6d31;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.ranking-name {
    font-weight: 700;
    color: #374151;
    font-size: 0.85rem;
}

.ranking-points {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    color: #1f2937;
    font-size: 0.85rem;
}

.ranking-points i {
    color: #f59e0b;
    font-size: 0.75rem;
}

.ranking-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    border-top: 1px solid #f0ede4;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
