/* =========================================================
   CSBC26 — Gamificação Page Stylesheet
   Extends: ../main-page/index.css (base design system)
   ========================================================= */

/* ---------------------------------------------------------
   0. PAGE LAYOUT
   --------------------------------------------------------- */
.gamificacao-page {
    overflow-y: auto;
    overflow-x: hidden;
}

/* The shared background uses several large blurred, continuously animated
   layers. Keep this data-heavy ranking view visually rich but static. */
.gamificacao-page .orb {
    animation: none;
    will-change: auto;
}

.gamificacao-shell {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 0 var(--sp-lg) var(--sp-lg);
    display: flex;
    flex-direction: column;
    min-height: calc(100dvh - 70px);
}

/* ---------------------------------------------------------
   1. HEADER TWEAKS
   --------------------------------------------------------- */
.header-inner--gamificacao {
    max-width: 520px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 0.82rem;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background var(--duration-fast) var(--ease-out),
        color var(--duration-fast) var(--ease-out);
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.back-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ---------------------------------------------------------
   2. PAGE TITLE
   --------------------------------------------------------- */
.gamificacao-page-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-primary);
    text-align: center;
    margin-top: var(--sp-lg);
    margin-bottom: var(--sp-sm);
}

.gamificacao-page-title .highlight {
    background: linear-gradient(135deg, var(--laranja) 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---------------------------------------------------------
   3. PODIUM SECTION
   --------------------------------------------------------- */
.podium-section {
    position: relative;
    padding: var(--sp-lg) 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0;
    z-index: 3;
}

.podium-section::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 80%;
    background: radial-gradient(ellipse at center, rgba(251, 126, 77, 0.15) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.podium-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: var(--sp-sm);
    width: 100%;
    max-width: 380px;
    padding-bottom: 0;
}

.podium-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    max-width: 120px;
}

.podium-avatar {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--branco);
    border: 2px solid rgba(255, 255, 255, 0.25);
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    overflow: visible;
}

.podium-slot--1 .podium-avatar {
    width: 78px;
    height: 78px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--laranja) 0%, #fbbf24 100%);
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4), 0 0 40px rgba(251, 126, 77, 0.15);
}

.podium-slot--2 .podium-avatar {
    background: linear-gradient(135deg, var(--azul-claro) 0%, #6c8cff 100%);
    border-color: rgba(59, 78, 226, 0.4);
    box-shadow: 0 0 18px rgba(59, 78, 226, 0.3);
}

.podium-slot--3 .podium-avatar {
    background: linear-gradient(135deg, var(--verde) 0%, #34d399 100%);
    border-color: rgba(69, 214, 121, 0.4);
    box-shadow: 0 0 18px rgba(69, 214, 121, 0.3);
}

/* ── Podium 1st place orbiting particles ── */
.podium-avatar__particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.podium-avatar__particle--1 {
    width: 7px;
    height: 7px;
    background: var(--laranja);
    box-shadow: 0 0 10px var(--laranja);
    top: -2px;
    left: 50%;
    transform-origin: 0 39px;
}

.podium-avatar__particle--2 {
    width: 5px;
    height: 5px;
    background: #fbbf24;
    box-shadow: 0 0 8px #fbbf24;
    top: 50%;
    right: -4px;
    transform-origin: -39px 0;
}

.podium-avatar__particle--3 {
    width: 5px;
    height: 5px;
    background: var(--branco);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    bottom: 0;
    left: 20%;
    transform-origin: 20px -35px;
}

/* Órbita das partículas do 1º lugar — giram ao redor do avatar
   (o transform-origin acima define o raio de cada uma). */
@keyframes podium-orbit {
    to { transform: rotate(360deg); }
}
.podium-avatar__particle--1 { animation: podium-orbit 6s linear infinite; }
.podium-avatar__particle--2 { animation: podium-orbit 9s linear infinite reverse; }
.podium-avatar__particle--3 { animation: podium-orbit 7s linear infinite; }

@media (prefers-reduced-motion: reduce) {
    .podium-avatar__particle--1,
    .podium-avatar__particle--2,
    .podium-avatar__particle--3 { animation: none; }
}

.podium-crown {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.1rem;
    filter: drop-shadow(0 2px 6px rgba(251, 191, 36, 0.5));
    z-index: 3;
}

.podium-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 110px;
}

.podium-points {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--laranja);
    background: rgba(251, 126, 77, 0.12);
    border: 1px solid rgba(251, 126, 77, 0.2);
    border-radius: 100px;
    padding: 2px 10px;
    white-space: nowrap;
}

.podium-block {
    width: 100%;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.25);
    border: 1px solid var(--glass-border);
    border-bottom: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform-origin: bottom center;
}

.podium-slot--1 .podium-block {
    height: 100px;
    background: linear-gradient(180deg, rgba(251, 126, 77, 0.5) 0%, rgba(251, 126, 77, 0.2) 50%, rgba(20, 25, 100, 0.25) 100%);
    border-color: rgba(251, 126, 77, 0.35);
}

.podium-slot--2 .podium-block {
    height: 75px;
    background: linear-gradient(180deg, rgba(59, 78, 226, 0.5) 0%, rgba(59, 78, 226, 0.18) 50%, rgba(20, 25, 100, 0.25) 100%);
    border-color: rgba(59, 78, 226, 0.3);
}

.podium-slot--3 .podium-block {
    height: 55px;
    background: linear-gradient(180deg, rgba(69, 214, 121, 0.45) 0%, rgba(69, 214, 121, 0.15) 50%, rgba(20, 25, 100, 0.25) 100%);
    border-color: rgba(69, 214, 121, 0.3);
}

.podium-fade {
    display: none;
}

/* ---------------------------------------------------------
   4. SWITCH (TAB TOGGLE)
   --------------------------------------------------------- */
.tab-switch-wrapper {
    display: flex;
    justify-content: center;
    margin-top: -8px;
    margin-bottom: var(--sp-lg);
    position: relative;
    z-index: 5;
}

.tab-switch {
    display: flex;
    position: relative;
    background: rgba(20, 25, 100, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 3px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
}

.tab-switch__indicator {
    position: absolute;
    top: 3px;
    left: 3px;
    height: calc(100% - 6px);
    width: calc(50% - 3px);
    background: linear-gradient(135deg, rgba(251, 126, 77, 0.45) 0%, rgba(251, 126, 77, 0.2) 100%);
    border-radius: 100px;
    border: 1px solid rgba(251, 126, 77, 0.3);
    z-index: 0;
    pointer-events: none;
}

.tab-switch__btn {
    position: relative;
    z-index: 1;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 9px 20px;
    cursor: pointer;
    border-radius: 100px;
    transition: color var(--duration-base) var(--ease-out);
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}

.tab-switch__btn.is-active {
    color: var(--text-primary);
}

.tab-switch__btn:not(.is-active):hover {
    color: var(--text-primary);
}

.tab-switch__btn svg {
    width: 14px;
    height: 14px;
    display: inline-block;
    vertical-align: -2px;
    margin-right: 5px;
}

/* ---------------------------------------------------------
   5. CONTENT AREA (below podium)
   --------------------------------------------------------- */
.content-area {
    position: relative;
    z-index: 5;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--sp-md);
}

.tab-panel {
    display: none;
    flex-direction: column;
    gap: var(--sp-md);
}

.tab-panel.is-visible {
    display: flex;
}

/* ---------------------------------------------------------
   6. SEARCH & FILTER BAR
   --------------------------------------------------------- */
.search-bar {
    display: flex;
    gap: var(--sp-sm);
    align-items: center;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input-wrapper svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
}

.search-input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    background: rgba(20, 25, 100, 0.35);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.82rem;
    outline: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color var(--duration-fast) var(--ease-out);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-input:focus {
    border-color: rgba(251, 126, 77, 0.45);
}

.filter-select {
    padding: 10px 14px;
    background: rgba(20, 25, 100, 0.45);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 500;
    outline: none;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color var(--duration-fast) var(--ease-out);
    -webkit-appearance: none;
    appearance: none;
    min-width: 130px;
    white-space: nowrap;
}

.filter-select:focus {
    border-color: rgba(251, 126, 77, 0.45);
}

.stats-badge {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: right;
    padding: 0 2px;
    white-space: nowrap;
}

/* ---------------------------------------------------------
   7. RANKING TABLE / LIST
   --------------------------------------------------------- */
.ranking-header {
    display: grid;
    grid-template-columns: 40px 1fr auto 60px;
    gap: var(--sp-sm);
    align-items: center;
    padding: 0 var(--sp-md) var(--sp-sm);
    border-bottom: 1px solid var(--glass-border);
}

.ranking-header span {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ranking-header span:last-child {
    text-align: right;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rank-row {
    display: grid;
    grid-template-columns: 40px 1fr auto 60px;
    gap: var(--sp-sm);
    align-items: center;
    padding: 10px var(--sp-md);
    background: rgba(20, 25, 100, 0.2);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    transition: background var(--duration-fast) var(--ease-out),
        border-color var(--duration-fast) var(--ease-out),
        transform var(--duration-fast) var(--ease-out);
    cursor: default;
}

@media (hover: hover) and (pointer: fine) {
    .rank-row:hover {
        background: rgba(20, 25, 100, 0.4);
        border-color: var(--glass-border);
        transform: translateX(2px);
    }
}

.rank-row--gold {
    background: rgba(251, 126, 77, 0.08);
    border-color: rgba(251, 126, 77, 0.12);
}

.rank-row--silver {
    background: rgba(59, 78, 226, 0.08);
    border-color: rgba(59, 78, 226, 0.12);
}

.rank-row--bronze {
    background: rgba(69, 214, 121, 0.06);
    border-color: rgba(69, 214, 121, 0.1);
}

.rank-pos {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-align: center;
}

.rank-row--gold .rank-pos { color: var(--laranja); }
.rank-row--silver .rank-pos { color: var(--azul-claro); }
.rank-row--bronze .rank-pos { color: var(--verde); }

.rank-info {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.rank-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--branco);
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(59, 78, 226, 0.6), rgba(20, 25, 100, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-transform: uppercase;
}

.rank-row--gold .rank-avatar {
    background: linear-gradient(135deg, rgba(251, 126, 77, 0.7), rgba(251, 126, 77, 0.3));
}
.rank-row--silver .rank-avatar {
    background: linear-gradient(135deg, rgba(59, 78, 226, 0.7), rgba(59, 78, 226, 0.3));
}
.rank-row--bronze .rank-avatar {
    background: linear-gradient(135deg, rgba(69, 214, 121, 0.6), rgba(69, 214, 121, 0.3));
}

.rank-details {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.rank-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-sub {
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-uni-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    background: rgba(59, 78, 226, 0.32);
    border: 1px solid rgba(59, 78, 226, 0.55);
    border-radius: 6px;
    padding: 3px 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.rank-score {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--laranja);
    text-align: right;
}

/* ---------------------------------------------------------
   8. PAGINATION
   --------------------------------------------------------- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3px;
    padding-top: var(--sp-md);
}

.pagination__btn {
    width: clamp(32px, 8vw, 36px);
    height: clamp(32px, 8vw, 36px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 25, 100, 0.3);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    -webkit-tap-highlight-color: transparent;
}

.pagination__btn:hover {
    background: rgba(59, 78, 226, 0.2);
    border-color: rgba(59, 78, 226, 0.3);
    color: var(--text-primary);
}

.pagination__btn.is-active {
    background: linear-gradient(135deg, rgba(251, 126, 77, 0.4), rgba(251, 126, 77, 0.2));
    border-color: rgba(251, 126, 77, 0.4);
    color: var(--text-primary);
}

.pagination__btn:disabled {
    opacity: 0.3;
    pointer-events: none;
}

.pagination__btn svg {
    width: 16px;
    height: 16px;
}

.pagination__ellipsis {
    width: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    user-select: none;
}

.pagination__info {
    font-size: 0.72rem;
    color: var(--text-muted);
    padding: 0 var(--sp-sm);
}

/* ---------------------------------------------------------
   9. UNIVERSITY CARDS GRID
   --------------------------------------------------------- */
.uni-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-sm);
}

.uni-card {
    position: relative;
    background: rgba(20, 25, 100, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--sp-md);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
    transition: transform var(--duration-base) var(--ease-out),
        border-color var(--duration-base) var(--ease-out),
        box-shadow var(--duration-base) var(--ease-out);
    -webkit-tap-highlight-color: transparent;
}

.uni-card:active {
    transform: translateY(0) scale(0.98);
}

.uni-card__glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse at 30% 20%, rgba(251, 126, 77, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--duration-slow) var(--ease-out);
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .uni-card:hover {
        transform: translateY(-3px) scale(1.01);
        border-color: rgba(251, 126, 77, 0.35);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
    }

    .uni-card:hover .uni-card__glow {
        opacity: 1;
    }
}

.uni-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.uni-card__badge {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.uni-card__position {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
}

.uni-card__position--1 {
    background: rgba(251, 126, 77, 0.25);
    border-color: rgba(251, 126, 77, 0.4);
    color: var(--laranja);
}

.uni-card__position--2 {
    background: rgba(59, 78, 226, 0.2);
    border-color: rgba(59, 78, 226, 0.35);
    color: var(--azul-claro);
}

.uni-card__position--3 {
    background: rgba(69, 214, 121, 0.18);
    border-color: rgba(69, 214, 121, 0.3);
    color: var(--verde);
}

.uni-card__name {
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.uni-card__score {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--laranja);
    line-height: 1;
}

.uni-card__score-label {
    font-size: 0.6rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: -2px;
}

.uni-card__stats {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    padding-top: 6px;
    border-top: 1px solid var(--glass-border);
}

.uni-card__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.uni-card__stat-val {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
}

.uni-card__stat-label {
    font-size: 0.55rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.uni-card__progress {
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    overflow: hidden;
}

.uni-card__progress-fill {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--laranja), #fbbf24);
    transition: width var(--duration-slow) var(--ease-out);
}

.uni-card__best {
    font-size: 0.65rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.uni-card__best strong {
    color: var(--text-secondary);
    font-weight: 600;
}

/* ---------------------------------------------------------
   10. UNIVERSITY DETAIL VIEW
   --------------------------------------------------------- */
.uni-detail {
    display: none;
    flex-direction: column;
    gap: var(--sp-md);
}

.uni-detail.is-visible {
    display: flex;
}

.uni-detail__header {
    display: flex;
    align-items: center;
    gap: var(--sp-md);
}

.uni-detail__back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    cursor: pointer;
    color: var(--text-secondary);
    transition: all var(--duration-fast) var(--ease-out);
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.uni-detail__back:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.uni-detail__back svg {
    width: 18px;
    height: 18px;
}

.uni-detail__title {
    flex: 1;
    min-width: 0;
}

.uni-detail__badge {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
}

.uni-detail__name {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.uni-detail__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-sm);
}

.uni-detail__stat-card {
    background: rgba(20, 25, 100, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 12px;
    text-align: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.uni-detail__stat-val {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--laranja);
}

.uni-detail__stat-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}

/* ---------------------------------------------------------
   11. EMPTY STATE
   --------------------------------------------------------- */
.empty-state {
    text-align: center;
    padding: var(--sp-xl) var(--sp-md);
    color: var(--text-muted);
}

.empty-state__icon {
    font-size: 2rem;
    margin-bottom: var(--sp-sm);
    opacity: 0.5;
}

.empty-state__text {
    font-size: 0.85rem;
    font-weight: 500;
}

/* ---------------------------------------------------------
   12. RESPONSIVE — Tablet
   --------------------------------------------------------- */
@media (min-width: 600px) {
    .gamificacao-shell {
        max-width: 600px;
    }

    .podium-wrapper {
        max-width: 440px;
    }

    .podium-slot--1 .podium-avatar {
        width: 100px;
        height: 100px;
        font-size: 1.1rem;
    }

    .podium-avatar {
        width: 100px;
        height: 100px;
    }

    .podium-slot--1 .podium-block {
        height: 120px;
    }

    .podium-slot--2 .podium-block {
        height: 90px;
    }

    .podium-slot--3 .podium-block {
        height: 65px;
    }

    .uni-cards-grid {
        gap: var(--sp-md);
    }
}

/* ---------------------------------------------------------
   13. RESPONSIVE — Desktop: two-column (podium left, content right)
   --------------------------------------------------------- */

/* Wrapper for switch + content area (right column on desktop) */
.gamificacao-content {
    display: contents; /* Transparent on mobile — children flow normally */
}

@media (min-width: 900px) {
    .gamificacao-shell {
        max-width: 1100px;
        padding: var(--sp-lg) var(--sp-xl) var(--sp-xl);
        flex-direction: row;
        align-items: flex-start;
        gap: var(--sp-xl);
    }

    .header-inner--gamificacao {
        max-width: 1100px;
    }

    /* ── Podium: left column, sticky ── */
    .podium-section {
        position: sticky;
        top: var(--sp-lg);
        flex-shrink: 0;
        width: 320px;
        margin-bottom: 0;
        padding-top: var(--sp-xl);
    }

    .podium-section::before {
        width: 140%;
    }

    .podium-wrapper {
        max-width: 300px;
    }

    /* Bigger podium on desktop */
    .podium-avatar {
        width: 62px;
        height: 62px;
        font-size: 0.95rem;
    }

    .podium-slot--1 .podium-avatar {
        width: 80px;
        height: 80px;
        font-size: 1.2rem;
    }

    .podium-slot--1 .podium-block {
        height: 140px;
        font-size: 2rem;
    }

    .podium-slot--2 .podium-block {
        height: 105px;
        font-size: 1.8rem;
    }

    .podium-slot--3 .podium-block {
        height: 75px;
        font-size: 1.6rem;
    }

    .podium-name {
        font-size: 0.85rem;
        max-width: 130px;
    }

    .podium-points {
        font-size: 0.78rem;
    }

    .podium-crown {
        font-size: 1.3rem;
        top: -16px;
    }

    /* Hide the fade gradient — not needed in side-by-side layout */
    .podium-fade {
        display: none;
    }

    /* ── Content: right column, scrollable ── */
    .gamificacao-content {
        display: flex;
        flex-direction: column;
        gap: var(--sp-md);
        flex: 1;
        min-width: 0;
        min-height: 0;
    }

    .tab-switch-wrapper {
        margin-top: 0;
        margin-bottom: 0;
        justify-content: flex-start;
    }

    .uni-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ranking-header {
        grid-template-columns: 50px 1fr auto 80px;
    }

    .rank-row {
        grid-template-columns: 50px 1fr auto 80px;
    }
}

@media (min-width: 1200px) {
    .gamificacao-shell {
        max-width: 1280px;
        gap: var(--sp-2xl);
    }

    .header-inner--gamificacao {
        max-width: 1280px;
    }

    /* Bigger podium column on large screens */
    .podium-section {
        width: 380px;
    }

    .podium-wrapper {
        max-width: 360px;
    }

    .podium-slot--1 .podium-avatar {
        width: 88px;
        height: 88px;
        font-size: 1.3rem;
    }

    .podium-slot--1 .podium-block {
        height: 160px;
    }

    .podium-slot--2 .podium-block {
        height: 120px;
    }

    .podium-slot--3 .podium-block {
        height: 85px;
    }

    .uni-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---------------------------------------------------------
   14. REDUCED MOTION
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .gamificacao-page *,
    .gamificacao-page *::before,
    .gamificacao-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .gamificacao-page .orb {
        animation: none !important;
    }
}
