/* ============================================================
   WIKI — CORRIDA AO NÍVEL 99
   Identidade de evento competitivo (velocidade, conquista,
   rivalidade, exclusividade, premiação).
   Usado em:
   - themes/trend/ajax/corrida99.html (seções da wiki)
   - themes/trend/ranking/nivel99.php (página standalone + ajax)
   ============================================================ */

/* ---- TOKENS DO EVENTO ---- */
:root {
    --ecr-gold:      #e5bd64;
    --ecr-gold-l:    #fff0a8;
    --ecr-red:       #ff6b5e;
    --ecr-red-deep:  #c0392b;
    --ecr-orange:    #ffb454;
    --ecr-trophy:    #ffd76e;
    --ecr-track:     rgba(255, 107, 94, 0.16);
    --ecr-bg-line:   rgba(255, 107, 94, 0.08);
}

/* ============================================================
   HERO
   ============================================================ */
.ecr-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 34px;
    padding: 42px 34px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 88% -12%, rgba(255, 180, 84, 0.22), transparent 48%),
        radial-gradient(circle at 6% 112%, rgba(192, 57, 43, 0.28), transparent 52%),
        linear-gradient(135deg, rgba(24, 12, 6, 0.98), rgba(6, 14, 12, 0.98));
    border: 1px solid rgba(255, 107, 94, 0.38);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.35), inset 0 0 70px rgba(255, 180, 84, 0.05);
}

/* Linhas de velocidade do fundo */
.ecr-hero::before,
.ecr-hero::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    background: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.03) 0 10px,
        transparent 10px 24px
    );
    pointer-events: none;
}

.ecr-hero::before {
    right: 0;
}

.ecr-hero::after {
    content: "99";
    left: auto;
    right: 20px;
    bottom: auto;
    top: -34px;
    width: auto;
    height: auto;
    background: none;
    font-family: 'Cinzel', serif;
    font-size: 160px;
    font-weight: 900;
    line-height: 1;
    color: rgba(255, 215, 110, 0.08);
    opacity: 1;
    transform: none;
    text-shadow: 0 0 60px rgba(255, 180, 84, 0.4);
}

.ecr-hero-tag {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 107, 94, 0.12);
    border: 1px solid rgba(255, 107, 94, 0.42);
    color: var(--ecr-trophy);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.4px;
    text-transform: uppercase;
}

.ecr-hero h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 14px;
    max-width: 640px;
    color: var(--ecr-gold-l);
    font-family: 'Cinzel', serif;
    font-size: clamp(24px, 4vw, 38px);
    line-height: 1.18;
    text-transform: uppercase;
}

.ecr-hero p {
    position: relative;
    z-index: 1;
    margin: 0 0 22px;
    max-width: 600px;
    color: var(--eden-muted);
    font-size: 14px;
    line-height: 1.8;
}

.ecr-hero p strong {
    color: var(--ecr-gold-l);
}

.ecr-hero-actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ---- BOTÕES ---- */
.ecr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    height: 46px;
    padding: 0 22px;
    border-radius: 14px;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: 0.25s ease;
}

.ecr-btn-gold {
    color: #1b1004;
    background: linear-gradient(135deg, #e5bd64, #fff0a8);
    box-shadow: 0 0 24px rgba(229, 189, 100, 0.28);
}

.ecr-btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 34px rgba(229, 189, 100, 0.42);
}

.ecr-btn-fire {
    color: #1b1004;
    background: linear-gradient(135deg, #ff8a66, #ffd76e);
    box-shadow: 0 0 24px rgba(255, 107, 94, 0.3);
}

.ecr-btn-fire:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 34px rgba(255, 107, 94, 0.45);
}

.ecr-btn-ghost {
    color: var(--ecr-trophy);
    background: rgba(255, 107, 94, 0.05);
    border-color: rgba(255, 107, 94, 0.36);
}

.ecr-btn-ghost:hover {
    border-color: rgba(255, 215, 110, 0.7);
    background: rgba(255, 107, 94, 0.12);
    transform: translateY(-2px);
}

/* ---- STATS DO HERO ---- */
.ecr-hero-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px dashed rgba(255, 107, 94, 0.3);
}

.ecr-hero-stat {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(6, 14, 12, 0.55);
    border: 1px solid rgba(255, 107, 94, 0.24);
}

.ecr-hero-stat strong {
    display: block;
    color: var(--ecr-trophy);
    font-family: 'Cinzel', serif;
    font-size: 19px;
    line-height: 1.2;
}

.ecr-hero-stat span {
    display: block;
    margin-top: 4px;
    color: var(--eden-muted);
    font-size: 10px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

/* ============================================================
   SEÇÕES
   ============================================================ */
.ecr-sec > p.ecr-lead {
    margin: -10px 0 12px;
    color: var(--eden-muted);
    font-size: 14px;
    line-height: 1.8;
    max-width: 820px;
}

.ecr-sec .ecr-lead strong {
    color: var(--ecr-gold-l);
}

/* ---- GRID DE CARDS "O QUE É" ---- */
.ecr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 22px 0 6px;
}

.ecr-card {
    position: relative;
    padding: 22px;
    border-radius: 18px;
    background:
        radial-gradient(circle at top left, rgba(255, 180, 84, 0.12), transparent 42%),
        rgba(6, 14, 12, 0.55);
    border: 1px solid rgba(255, 107, 94, 0.26);
    transition: 0.26s ease;
    overflow: hidden;
}

.ecr-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 215, 110, 0.6);
    box-shadow: 0 0 22px rgba(255, 107, 94, 0.14);
}

.ecr-card-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 13px;
    background: rgba(255, 107, 94, 0.12);
    border: 1px solid rgba(255, 107, 94, 0.34);
    color: var(--ecr-trophy);
    font-size: 20px;
}

.ecr-card h3 {
    margin: 0 0 8px;
    color: var(--ecr-gold-l);
    font-family: 'Cinzel', serif;
    font-size: 16px;
    text-transform: uppercase;
}

.ecr-card p {
    margin: 0;
    color: var(--eden-muted);
    font-size: 13px;
    line-height: 1.65;
}

.ecr-card p strong {
    color: var(--ecr-gold-l);
    font-weight: 700;
}

/* ============================================================
   COMO FUNCIONA — LINHA DO TEMPO
   ============================================================ */
.ecr-steps {
    display: flex;
    flex-direction: column;
    margin: 24px 0 6px;
}

.ecr-step {
    position: relative;
    display: flex;
    gap: 16px;
    padding-bottom: 26px;
}

.ecr-step:last-child {
    padding-bottom: 0;
}

.ecr-step::before {
    content: "";
    position: absolute;
    left: 21px;
    top: 46px;
    bottom: -2px;
    width: 2px;
    background: linear-gradient(180deg, rgba(255, 107, 94, 0.55), rgba(255, 107, 94, 0.1));
}

.ecr-step:last-child::before {
    display: none;
}

.ecr-step-num {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-family: 'Cinzel', serif;
    font-size: 15px;
    font-weight: 900;
    color: #1b1004;
    background: linear-gradient(135deg, #ff8a66, #ffd76e);
    box-shadow: 0 0 18px rgba(255, 107, 94, 0.3);
    position: relative;
    z-index: 1;
}

.ecr-step-body {
    padding-top: 2px;
}

.ecr-step-body h3 {
    margin: 0 0 6px;
    color: var(--ecr-gold-l);
    font-family: 'Cinzel', serif;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ecr-step-body p {
    margin: 0;
    color: var(--eden-muted);
    font-size: 13px;
    line-height: 1.7;
    max-width: 720px;
}

.ecr-step-body p strong {
    color: var(--ecr-gold-l);
}

/* ---- NOTA / INFO BOX ---- */
.ecr-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 107, 94, 0.1);
    border: 1px solid rgba(255, 107, 94, 0.28);
    color: var(--eden-muted);
    font-size: 13px;
    line-height: 1.6;
}

.ecr-note i {
    color: var(--ecr-trophy);
    flex-shrink: 0;
    margin-top: 2px;
}

.ecr-note strong {
    color: var(--ecr-gold-l);
}

.ecr-note.ecr-note-dark {
    background: rgba(6, 14, 12, 0.55);
    border-color: rgba(229, 189, 100, 0.22);
}

/* ============================================================
   PREMIAÇÕES
   ============================================================ */
.ecr-main-prize {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 22px 0 6px;
    padding: 26px 28px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 90% -30%, rgba(255, 215, 110, 0.24), transparent 55%),
        linear-gradient(140deg, rgba(58, 24, 12, 0.92), rgba(10, 14, 12, 0.95));
    border: 1px solid rgba(255, 215, 110, 0.5);
    box-shadow: 0 0 40px rgba(255, 180, 84, 0.12), inset 0 0 60px rgba(255, 180, 84, 0.06);
}

.ecr-main-prize::after {
    content: "🏆";
    position: absolute;
    top: -20px;
    right: -8px;
    font-size: 110px;
    opacity: 0.09;
    transform: rotate(10deg);
    pointer-events: none;
}

.ecr-prize-ico {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    font-size: 32px;
    background: linear-gradient(135deg, #ffd76e, #fff0a8);
    box-shadow: 0 0 26px rgba(255, 215, 110, 0.4);
}

.ecr-prize-body {
    position: relative;
    z-index: 1;
}

.ecr-prize-body .ecr-prize-tag {
    display: block;
    margin-bottom: 4px;
    color: var(--ecr-trophy);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.ecr-prize-body strong.ecr-prize-value {
    display: block;
    color: var(--ecr-gold-l);
    font-family: 'Cinzel', serif;
    font-size: 40px;
    line-height: 1.05;
    text-shadow: 0 0 30px rgba(255, 180, 84, 0.3);
}

.ecr-prize-body span {
    display: block;
    margin-top: 6px;
    color: var(--eden-muted);
    font-size: 13px;
    line-height: 1.6;
    max-width: 520px;
}

.ecr-prize-body span strong {
    color: var(--ecr-gold-l);
}

.ecr-prizes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 14px 0 6px;
}

.ecr-prize-card {
    position: relative;
    padding: 18px 20px;
    border-radius: 16px;
    background:
        radial-gradient(circle at top right, rgba(255, 107, 94, 0.12), transparent 46%),
        rgba(6, 14, 12, 0.55);
    border: 1px solid rgba(255, 107, 94, 0.26);
    transition: 0.24s ease;
}

.ecr-prize-card:hover {
    border-color: rgba(255, 215, 110, 0.55);
    transform: translateY(-3px);
}

.ecr-prize-card .ecr-prize-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.ecr-prize-card .ecr-prize-card-top b {
    color: var(--ecr-gold-l);
    font-family: 'Cinzel', serif;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.ecr-prize-card .ecr-prize-card-top .ecr-prize-classes {
    color: var(--ecr-trophy);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    white-space: nowrap;
}

.ecr-prize-card p {
    margin: 0;
    color: var(--eden-muted);
    font-size: 12.5px;
    line-height: 1.65;
}

.ecr-prize-card p strong {
    color: var(--ecr-gold-l);
}

.ecr-total {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
    padding: 16px 20px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 0% 50%, rgba(255, 215, 110, 0.18), transparent 45%),
        rgba(6, 14, 12, 0.55);
    border: 1px solid rgba(255, 215, 110, 0.36);
}

.ecr-total-ico {
    font-size: 30px;
    flex-shrink: 0;
}

.ecr-total strong {
    display: block;
    color: var(--ecr-gold-l);
    font-family: 'Cinzel', serif;
    font-size: 22px;
    line-height: 1.2;
}

.ecr-total span {
    display: block;
    margin-top: 2px;
    color: var(--eden-muted);
    font-size: 12.5px;
}

/* ============================================================
   CLASSES PARTICIPANTES
   ============================================================ */
.ecr-classes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin: 20px 0 6px;
}

.ecr-class-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 14px;
    border-radius: 13px;
    background: rgba(6, 14, 12, 0.55);
    border: 1px solid rgba(229, 189, 100, 0.22);
    color: var(--eden-text-secondary);
    font-size: 12.5px;
    font-weight: 600;
    transition: 0.22s ease;
}

.ecr-class-chip:hover {
    border-color: rgba(255, 215, 110, 0.55);
    transform: translateY(-2px);
    color: var(--ecr-gold-l);
}

.ecr-class-chip .ecr-class-ico {
    flex-shrink: 0;
    font-size: 15px;
}

.ecr-class-chip.ecr-chip-trans {
    border-color: rgba(255, 107, 94, 0.34);
    background:
        radial-gradient(circle at top left, rgba(255, 107, 94, 0.1), transparent 50%),
        rgba(6, 14, 12, 0.55);
}

.ecr-class-chip.ecr-chip-trans .ecr-class-ico {
    color: var(--ecr-red);
}

.ecr-class-section-title {
    margin: 22px 0 0;
    color: var(--ecr-gold-l);
    font-family: 'Cinzel', serif;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---- SEÇÃO DE CLASSES DA PÁGINA STANDALONE ---- */
.ecr-page-classes {
    margin: 22px 0 6px;
}

.ecr-page-classes .ecr-lead {
    margin: 4px 0 14px;
    color: var(--eden-muted);
    font-size: 13.5px;
    line-height: 1.7;
    max-width: 820px;
}

.ecr-page-classes .ecr-lead strong {
    color: var(--ecr-trophy);
}

.ecr-page-classes .ecr-classes {
    margin: 0 0 4px;
}

.ecr-class-chip.ecr-chip-trans .ecr-class-total,
.ecr-class-chip .ecr-class-total {
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 107, 94, 0.14);
    border: 1px solid rgba(255, 107, 94, 0.32);
    color: var(--ecr-red);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.ecr-classes-empty {
    margin: 8px 0 4px;
    padding: 14px 16px;
    border-radius: 13px;
    background: rgba(255, 107, 94, 0.07);
    border: 1px dashed rgba(255, 107, 94, 0.35);
    color: var(--eden-muted);
    font-size: 13px;
    line-height: 1.6;
}

/* ============================================================
   RANKING (AJAX + PÁGINA)
   ============================================================ */
.ecr-ranking-wrap {
    margin-top: 18px;
}

.ecr-race-status {
    margin-bottom: 12px;
    padding: 12px 16px;
    border-radius: 13px;
    background: rgba(255, 107, 94, 0.1);
    border: 1px dashed rgba(255, 107, 94, 0.4);
    color: var(--ecr-trophy);
    font-family: 'Cinzel', serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.ecr-table-wrap {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid rgba(255, 107, 94, 0.24);
    background: rgba(6, 14, 12, 0.5);
}

.ecr-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
    font-size: 13px;
}

.ecr-table thead th {
    padding: 12px 14px;
    text-align: left;
    color: var(--ecr-trophy);
    background: rgba(255, 107, 94, 0.08);
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    border-bottom: 1px solid rgba(255, 107, 94, 0.26);
    white-space: nowrap;
}

.ecr-table tbody td {
    padding: 11px 14px;
    border-bottom: 1px solid rgba(255, 107, 94, 0.1);
    color: var(--eden-text-secondary);
}

.ecr-table tbody tr:last-child td {
    border-bottom: 0;
}

.ecr-table tbody tr.ecr-row-1 {
    background: linear-gradient(90deg, rgba(255, 215, 110, 0.12), transparent 70%);
}

.ecr-table tbody tr.ecr-row-first .ecr-name {
    color: var(--ecr-gold-l);
}

.ecr-table tbody tr:hover td {
    background: rgba(255, 107, 94, 0.04);
}

.ecr-table .ecr-pos {
    width: 56px;
    text-align: center;
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

.ecr-medal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 30px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(229, 189, 100, 0.2);
    color: var(--eden-text-secondary);
}

.ecr-medal-1 {
    background: linear-gradient(135deg, #ffd76e, #fff0a8);
    border-color: #fff0a8;
    color: #4a2c00;
    box-shadow: 0 0 16px rgba(255, 215, 110, 0.4);
}

.ecr-medal-2 {
    background: linear-gradient(135deg, #d8d8d8, #f4f4f4);
    border-color: #f4f4f4;
    color: #3a3a3a;
}

.ecr-medal-3 {
    background: linear-gradient(135deg, #e0985e, #ffc89a);
    border-color: #ffc89a;
    color: #4a2400;
}

.ecr-name {
    font-weight: 700;
}

.ecr-name a {
    color: var(--eden-text);
    text-decoration: none;
}

.ecr-name a:hover {
    color: var(--ecr-gold-l);
    text-decoration: underline;
}

.ecr-first-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 215, 110, 0.14);
    border: 1px solid rgba(255, 215, 110, 0.45);
    color: var(--ecr-trophy);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.ecr-99-badge {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(255, 107, 94, 0.16);
    border: 1px solid rgba(255, 107, 94, 0.55);
    color: var(--ecr-red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

.ecr-class,
.ecr-exp {
    white-space: nowrap;
}

.ecr-level {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--ecr-gold-l);
    white-space: nowrap;
}

.ecr-none {
    opacity: 0.4;
}

.ecr-ev {
    min-width: 130px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ecr-ev > span {
    flex-shrink: 0;
    width: 38px;
    text-align: right;
    color: var(--ecr-trophy);
    font-size: 11px;
    font-weight: 800;
}

.ecr-bar {
    flex: 1;
    height: 8px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 107, 94, 0.2);
    overflow: hidden;
}

.ecr-bar i {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, #ff6b5e, #ffd76e);
    box-shadow: 0 0 10px rgba(255, 107, 94, 0.5);
}

.ecr-row-empty td {
    color: rgba(255, 255, 255, 0.2);
    text-align: center;
}

.ecr-ajax-note {
    margin: 12px 0 0;
    color: var(--eden-muted);
    font-size: 11.5px;
    font-style: italic;
    opacity: 0.75;
}

/* ---- CABEÇALHO DO RANKING + TOGGLE ---- */
.ecr-ranking-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
    padding-bottom: 4px;
}

.ecr-ranking-head-title {
    color: var(--ecr-trophy);
    font-family: 'Cinzel', serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.ecr-rank-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    padding: 0 14px;
    border-radius: 11px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--ecr-trophy);
    background: rgba(255, 107, 94, 0.08);
    border: 1px solid rgba(255, 107, 94, 0.36);
    transition: 0.24s ease;
}

.ecr-rank-toggle:hover {
    border-color: rgba(255, 215, 110, 0.7);
    background: rgba(255, 107, 94, 0.14);
    transform: translateY(-1px);
}

.ecr-rank-toggle-ico {
    width: 15px;
    height: 15px;
    transition: transform 0.3s ease;
}

/* ---- COLAPSAR / EXPANDIR O RANKING ---- */
.ecr-collapse {
    position: relative;
    max-height: 340px;
    overflow: hidden;
    transition: max-height 0.45s ease;
}

.ecr-collapse::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(4, 14, 11, 0.92));
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.ecr-collapse-open {
    max-height: none;
    overflow: visible;
}

.ecr-collapse-open::after {
    opacity: 0;
}

.ecr-collapse-open .ecr-rank-toggle-ico,
.ecr-rank-toggle[aria-expanded="true"] .ecr-rank-toggle-ico {
    transform: rotate(180deg);
}

/* ---- CTA DE RANKING (wiki) ---- */
.ecr-ranking-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding: 22px 24px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 100% 0%, rgba(255, 180, 84, 0.14), transparent 50%),
        rgba(6, 14, 12, 0.55);
    border: 1px solid rgba(255, 107, 94, 0.3);
}

.ecr-ranking-cta p {
    margin: 0;
    color: var(--eden-muted);
    font-size: 13px;
    line-height: 1.6;
    max-width: 480px;
}

.ecr-ranking-cta p strong {
    color: var(--ecr-gold-l);
}

/* ============================================================
   CTA FINAL (WIKI)
   ============================================================ */
.ecr-cta {
    margin-top: 30px;
    padding: 36px 30px;
    text-align: center;
    border-radius: 20px;
    background:
        radial-gradient(circle at 50% -60%, rgba(255, 180, 84, 0.26), transparent 60%),
        linear-gradient(160deg, rgba(58, 24, 12, 0.9), rgba(6, 14, 12, 0.94));
    border: 1px solid rgba(255, 107, 94, 0.38);
}

.ecr-cta h3 {
    margin: 0 0 10px;
    color: var(--ecr-gold-l);
    font-family: 'Cinzel', serif;
    font-size: 24px;
    text-transform: uppercase;
}

.ecr-cta p {
    margin: 0 auto 20px;
    max-width: 560px;
    color: var(--eden-muted);
    font-size: 13.5px;
    line-height: 1.7;
}

.ecr-cta .ecr-btn {
    margin: 0 auto;
}

.ecr-cta-login {
    display: block;
    margin-top: 14px;
    color: var(--eden-muted);
    font-size: 12px;
}

/* ============================================================
   PÁGINA STANDALONE DO RANKING
   ============================================================ */
.ecr-page {
    max-width: 1080px;
    margin: 0 auto;
    padding: 44px 22px 70px;
}

.ecr-page-hero {
    position: relative;
    overflow: hidden;
    padding: 44px 36px;
    border-radius: 24px;
    text-align: center;
    background:
        radial-gradient(circle at 50% -40%, rgba(255, 180, 84, 0.24), transparent 60%),
        linear-gradient(160deg, rgba(38, 16, 8, 0.95), rgba(6, 14, 12, 0.98));
    border: 1px solid rgba(255, 107, 94, 0.4);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.ecr-page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.025) 0 10px,
        transparent 10px 26px
    );
    pointer-events: none;
}

.ecr-page-hero .ecr-hero-tag {
    position: relative;
    z-index: 1;
}

.ecr-page-hero h1 {
    position: relative;
    z-index: 1;
    margin: 0 0 14px;
    color: var(--ecr-gold-l);
    font-family: 'Cinzel', serif;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 0 40px rgba(255, 180, 84, 0.35);
}

.ecr-page-hero > p {
    position: relative;
    z-index: 1;
    margin: 0 auto 26px;
    max-width: 660px;
    color: var(--eden-muted);
    font-size: 14px;
    line-height: 1.8;
}

.ecr-page-hero > p strong {
    color: var(--ecr-gold-l);
}

.ecr-page-hero .ecr-hero-stats {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.ecr-filter {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed rgba(255, 107, 94, 0.3);
}

.ecr-filter label {
    color: var(--eden-muted);
    font-size: 13px;
}

.ecr-filter select {
    height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    background: rgba(6, 14, 12, 0.7);
    border: 1px solid rgba(229, 189, 100, 0.3);
    color: var(--eden-text);
    font-size: 13px;
    font-family: inherit;
}

.ecr-filter button {
    height: 40px;
    padding: 0 20px;
    border-radius: 12px;
    border: 0;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #1b1004;
    background: linear-gradient(135deg, #e5bd64, #fff0a8);
    transition: 0.24s ease;
}

.ecr-filter button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(229, 189, 100, 0.4);
}

.ecr-page-note {
    margin: 22px 0 0;
    padding: 18px 22px;
    border-radius: 16px;
    background: rgba(255, 107, 94, 0.08);
    border: 1px solid rgba(255, 107, 94, 0.3);
}

.ecr-page-note p {
    margin: 0;
    color: var(--eden-muted);
    font-size: 13.5px;
    line-height: 1.7;
}

.ecr-page-note p strong {
    color: var(--ecr-gold-l);
}

.ecr-page-table {
    margin-top: 22px;
}

.ecr-page-cta {
    margin-top: 26px;
    padding: 30px;
    text-align: center;
    border-radius: 20px;
    background:
        radial-gradient(circle at 50% -60%, rgba(255, 180, 84, 0.2), transparent 60%),
        rgba(6, 14, 12, 0.6);
    border: 1px solid rgba(255, 107, 94, 0.34);
}

.ecr-page-cta h3 {
    margin: 0 0 10px;
    color: var(--ecr-gold-l);
    font-family: 'Cinzel', serif;
    font-size: 22px;
    text-transform: uppercase;
}

.ecr-page-cta p {
    margin: 0 auto 18px;
    max-width: 560px;
    color: var(--eden-muted);
    font-size: 13.5px;
    line-height: 1.7;
}

.ecr-page-cta p strong {
    color: var(--ecr-gold-l);
}

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 980px) {
    .ecr-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ecr-hero-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .ecr-prizes {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .ecr-hero,
    .ecr-page-hero {
        padding: 28px 20px;
    }

    .ecr-main-prize {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .ecr-grid,
    .ecr-hero-stats,
    .ecr-prizes {
        grid-template-columns: 1fr;
    }

    .ecr-hero::after {
        font-size: 100px;
        right: 8px;
    }

    .ecr-ranking-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}