* {
    box-sizing: border-box;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.table{
    font-family: 'Segoe UI', sans-serif;
    background: #f0f2f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
    padding: 2rem 10rem;
}

h1 {
    margin-bottom: 2rem;
}

.podium-wrapper {
    overflow: hidden;
    width: 100%;
    display: flex;
    justify-content: center;
}

.podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 2rem;
}

.place {
    width: 100px;
    text-align: center;
    border-radius: 8px 8px 0 0;
    padding-top: 0.5rem;
    position: relative;
    transform: translateY(100%);
    animation: rise 0.8s ease forwards;
    text-decoration: none;
    color: inherit;
}

.place:nth-child(1) { animation-delay: 0.3s; }
.place:nth-child(2) { animation-delay: 0.1s; }
.place:nth-child(3) { animation-delay: 0.5s; }

@keyframes rise {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.place .number {
    font-size: 2rem;
    font-weight: bold;
}

.place .name {
    padding: 0.5rem;
    font-weight: 500;
    background-color: white;
    border-radius: 0 0 8px 8px;
}

.first   { height: 160px; background: linear-gradient(to top, #ffc107, #fff3cd); }
.second  { height: 120px; background: linear-gradient(to top, #c0c0c0, #e0e0e0); }
.third   { height: 100px; background: linear-gradient(to top, #cd7f32, #ffe5b4); }

.rank-list {
    width: 100%;
    max-width: 400px;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.rank-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: inherit;
}

.rank-item:last-child {
    border-bottom: none;
}

@media (max-width: 880px) {
    .table{
        padding: 2rem 5rem;
    }
}
@media (max-width: 600px) {
    .podium {
    flex-direction: row;
    gap: 0.5rem;
    }
    .place {
    width: 80px;
    }
    .table{
        padding: 1rem 2rem;
    }
    .h1n{
        font-size: 1.2rem;
    }
}