hr {
    margin: 1rem 0;
}

/* KPI container */
#kpi-panel {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 190px));
    justify-content: center;
    gap: 1rem;
    align-items: stretch;
    margin: 1rem auto 0;
    max-width: 1200px;
    width: 100%;
}

/* Card container */
#kpi-panel .kpi-card {
    container-type: inline-size;
    background: var(--primary);
    border-radius: 8px;
    padding: 0.9rem 0.95rem;
    display: flex;
    flex-direction: column;
    min-height: 160px;
    width: 100%;
    max-width: 190px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
}

#kpi-panel .kpi-link {
    cursor: pointer;
}

#kpi-panel .kpi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: default;
}

#kpi-panel a.kpi-card:hover {
    cursor: pointer;
}

#kpi-panel .kpi-card:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.85);
    outline-offset: 3px;
}

/* Title */
#kpi-panel .kpi-card .kpi-top {
    margin: 0 0 0.25rem;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-on-primary);
    letter-spacing: 0.02em;
    opacity: 0.92;
    min-height: 2.2em;
}

/* KPI value container */
#kpi-panel .kpi-card .kpi-value {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: clamp(2rem, 18cqw + 1rem, 3.5rem); 
    font-weight: 800;
    line-height: 1;
    color: var(--text-on-primary);
    padding: 0.2rem 0;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: anywhere;
}

#kpi-panel .kpi-card .kpi-bottom {
    margin: 0.25rem 0 0;
    min-height: 2.6em;
    text-align: center;
    font-size: 0.84rem;
    line-height: 1.25;
    color: var(--text-on-primary);
    opacity: 0.95;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

#last-tournament-podium {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 2rem;
    flex-wrap: wrap;
    margin: 1.25rem auto 0;
    max-width: 1200px;
    width: 100%;
}

#last-tournament-podium .podium-card {
    min-width: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.3rem;
    padding: 1rem 1.1rem;
    border-radius: 10px;
    border: 1px solid var(--primary);
    background: var(--background);
    color: var(--text-on-background-secondary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    position: relative;
}

#last-tournament-podium .podium-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
}

#last-tournament-podium .podium-avatar {
    flex: 0 0 auto;
    width: 100px;
    height: 100px;
    border-radius: 100%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.25);
}

#last-tournament-podium .podium-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#last-tournament-podium .podium-rank-badge .trophy-icon {
    position: absolute;
    top: -1rem;
    right: -1rem;
    width: 3rem;
    height: 3rem;
}

#last-tournament-podium .podium-rank-badge .podium-rank {
    color: #a4a4a4;
}

#last-tournament-podium .podium-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.2rem;
    overflow: hidden;
}

#last-tournament-podium .podium-info .ign {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.2;
    font-weight: 700;
    overflow: hidden;
    text-align: center;
    word-wrap: break-word;
    white-space: normal;
}

#last-tournament-podium .podium-info .value {
    margin: 0;
    font-size: 1.1rem;
    text-align: center;
    line-height: 1.2;
    opacity: 0.95;
}

/* Responsive adjustments - Generated by AI */

@media (max-width: 600px) {
    #kpi-panel {
        grid-template-columns: 1fr;
    }

    #kpi-panel .kpi-card {
        min-height: 160px;
        max-width: none;
    }
}

@media (max-width: 700px) {
    #last-tournament-podium {
        flex-direction: column;
        align-items: stretch;
    }

    #last-tournament-podium .podium-card {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 768px) {
    #kpi-panel {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    #kpi-panel .kpi-card {
        max-width: none;
    }
}
