.torneo-header {
    background: linear-gradient(90deg, #1a472a 60%, #c41e3a 100%);
    border-radius: 18px 18px 0 0;
    padding: 2rem 1rem 1.5rem 1rem;
    text-align: center;
    color: #fff;
    position: relative;
    box-shadow: 0 4px 24px #000a;
}
.torneo-header .icon {
    font-size: 2.5rem;
    color: #ffd700;
    margin-bottom: 0.5rem;
}
.torneo-title {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 0.3rem;
}
.torneo-vigencia {
    font-size: 1.1rem;
    color: #ffd700;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.torneo-premiacion {
    font-size: 1rem;
    color: #c41e3a;
    font-weight: 700;
    margin-top: 0.3rem;
    background: #ffd700;
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 8px;
}
.torneo-info-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin: 2rem 0 2.5rem 0;
}
.torneo-info-card {
    background: #1a472a;
    border: 1.5px solid #ffd700;
    border-radius: 14px;
    padding: 1.2rem 1.5rem;
    min-width: 220px;
    color: #fff;
    box-shadow: 0 2px 12px #0004;
    display: flex;
    align-items: center;
    gap: 1rem;
}
.torneo-info-card .icon {
    font-size: 2rem;
    color: #ffd700;
}
.torneo-info-card .text {
    font-size: 1.05rem;
}
.torneo-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}
.torneo-ranking-card {
    background: #292929;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    box-shadow: 0 2px 8px #0002;
    transition: transform 0.15s, box-shadow 0.15s;
    border-left: 5px solid transparent;
    position: relative;
}
.torneo-ranking-card:hover {
    transform: scale(1.025);
    box-shadow: 0 4px 16px #ffd70044;
    border-left: 5px solid #ffd700;
}
.torneo-ranking-medal {
    font-size: 1.7rem;
    margin-right: 1rem;
}
.torneo-ranking-pos {
    font-size: 1.2rem;
    font-weight: bold;
    width: 2.2rem;
    text-align: center;
    color: #ffd700;
}
.torneo-ranking-user {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
}
.torneo-ranking-points {
    font-size: 1.1rem;
    font-weight: bold;
    color: #7CFC00;
    margin-left: 1rem;
}
.torneo-ranking-card.gold { background: linear-gradient(90deg, #fff9e6 60%, #ffd700 100%); color: #1a472a; }
.torneo-ranking-card.silver { background: linear-gradient(90deg, #f0f0f0 60%, #c0c0c0 100%); color: #1a472a; }
.torneo-ranking-card.bronze { background: linear-gradient(90deg, #ffe4b3 60%, #cd7f32 100%); color: #1a472a; }
.torneo-ranking-card.gold .torneo-ranking-points,
.torneo-ranking-card.silver .torneo-ranking-points,
.torneo-ranking-card.bronze .torneo-ranking-points { color: #1a472a; }
.torneo-ranking-id {
    font-size: 0.95rem;
    color: #ffd700;
    font-weight: 600;
    margin-right: 1.2rem;
    min-width: 60px;
    text-align: left;
    display: inline-block;
}
@media (max-width: 600px) {
    .torneo-info-cards { flex-direction: column; gap: 1rem; }
    .torneo-header { padding: 1.2rem 0.5rem 1rem 0.5rem; }
    .torneo-ranking-id { min-width: 40px; margin-right: 0.5rem; font-size: 0.85rem; }
}
.torneo-hero-banner-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.2rem;
}
.torneo-hero-banner {
    width: 100%;
    min-height: 260px;
    max-height: 480px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 4px 24px #000a;
    display: block;
    margin-bottom: 2rem;
}
.torneo-header-simple {
    text-align: center;
    margin-bottom: 2.2rem;
}
.torneo-header-simple .torneo-title {
    font-size: 2.3rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
}
.torneo-header-simple .torneo-vigencia {
    font-size: 1.15rem;
    color: #ffd700;
    font-weight: 600;
}
.torneo-header-simple .torneo-premiacion {
    font-size: 1rem;
    color: #c41e3a;
    font-weight: 700;
    margin-top: 0.3rem;
    background: #ffd700;
    display: inline-block;
    padding: 0.3rem 1rem;
    border-radius: 8px;
}
.torneo-ranking-card.top1 {
    background: linear-gradient(90deg, #fff9e6 0%, #ffd700 100%);
    color: #1a472a;
    box-shadow: 0 4px 20px #ffd70066;
}
.torneo-ranking-card.top2 {
    background: linear-gradient(90deg, #f5f5f5 0%, #e0e0e0 100%);
    color: #1a472a;
    box-shadow: 0 4px 16px #e0e0e066;
}
.torneo-ranking-card.top3 {
    background: linear-gradient(90deg, #ffe4b3 0%, #cd7f32 100%);
    color: #1a472a;
    box-shadow: 0 4px 16px #cd7f3266;
}
.torneo-ranking-card.top4 {
    background: linear-gradient(90deg, #e8f5e9 0%, #66bb6a 100%);
    color: #1a472a;
    box-shadow: 0 3px 12px #66bb6a44;
}
.torneo-ranking-card.top5 {
    background: linear-gradient(90deg, #fff3e0 0%, #ffb74d 100%);
    color: #1a472a;
    box-shadow: 0 3px 12px #ffb74d44;
}
.torneo-ranking-card.top6 {
    background: linear-gradient(90deg, #fce4ec 0%, #f06292 100%);
    color: #1a472a;
    box-shadow: 0 3px 12px #f0629244;
}
.torneo-ranking-card.top7 {
    background: linear-gradient(90deg, #e1f5fe 0%, #4fc3f7 100%);
    color: #1a472a;
    box-shadow: 0 3px 12px #4fc3f744;
}
.torneo-ranking-card.top8 {
    background: linear-gradient(90deg, #f3e5f5 0%, #ba68c8 100%);
    color: #1a472a;
    box-shadow: 0 3px 12px #ba68c844;
}
.torneo-ranking-card.top9 {
    background: linear-gradient(90deg, #fff8e1 0%, #ffd54f 100%);
    color: #1a472a;
    box-shadow: 0 3px 12px #ffd54f44;
}
.torneo-ranking-card.top10 {
    background: linear-gradient(90deg, #e0f2f1 0%, #4db6ac 100%);
    color: #1a472a;
    box-shadow: 0 3px 12px #4db6ac44;
}
.torneo-ranking-card.top11 {
    background: linear-gradient(90deg, #ffebee 0%, #ef5350 100%);
    color: #fff;
    box-shadow: 0 3px 12px #ef535044;
}
.torneo-ranking-card.top12 {
    background: linear-gradient(90deg, #e8eaf6 0%, #7e57c2 100%);
    color: #fff;
    box-shadow: 0 3px 12px #7e57c244;
}
.torneo-ranking-card.top1 .torneo-ranking-id,
.torneo-ranking-card.top2 .torneo-ranking-id,
.torneo-ranking-card.top3 .torneo-ranking-id,
.torneo-ranking-card.top4 .torneo-ranking-id,
.torneo-ranking-card.top5 .torneo-ranking-id,
.torneo-ranking-card.top6 .torneo-ranking-id,
.torneo-ranking-card.top7 .torneo-ranking-id,
.torneo-ranking-card.top8 .torneo-ranking-id,
.torneo-ranking-card.top9 .torneo-ranking-id,
.torneo-ranking-card.top10 .torneo-ranking-id {
    color: #1a472a;
    font-weight: 700;
}
.torneo-ranking-card.top11 .torneo-ranking-id,
.torneo-ranking-card.top12 .torneo-ranking-id {
    color: #fff;
    font-weight: 700;
}
.torneo-ranking-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: flex-start;
}
.torneo-ranking-id {
    font-size: 1rem;
    min-width: 56px;
    text-align: left;
    font-weight: 600;
    opacity: 0.85;
}
.torneo-ranking-user {
    flex: 1;
    font-size: 1.1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.torneo-ranking-points {
    font-size: 1.1rem;
    font-weight: bold;
    margin-left: 1rem;
    color: #388e3c;
}
.torneo-ranking-pos-number {
    font-size: 2rem;
    font-weight: 900;
    min-width: 2.5rem;
    text-align: center;
    color: #1a472a;
    margin-right: 0.7rem;
    display: inline-block;
}
.dark-text {
    color: #1a472a !important;
    text-shadow: 0 1px 2px #fff8;
}
.white-text {
    color: #fff !important;
    text-shadow: 0 1px 2px #0008;
}
.gold-text {
    color: #ffd700 !important;
    font-weight: 700;
    text-shadow: 0 1px 2px #0008;
}
.torneo-ranking-header-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 700px;
    margin: 0 auto 0.5rem auto;
    padding: 0.5rem 1.2rem 0.5rem 1.2rem;
    color: #ffd700;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    background: none;
}
.torneo-ranking-header-col {
    flex-shrink: 0;
    padding-right: 0.5rem;
}
.torneo-ranking-header-col.ranking { width: 3.2rem; min-width: 2.5rem; text-align: center; }
.torneo-ranking-header-col.rut { width: 5.5rem; min-width: 4.5rem; text-align: left; }
.torneo-ranking-header-col.nombre { flex: 1; min-width: 7rem; text-align: left; }
.torneo-ranking-header-col.puntos { width: 6.5rem; min-width: 5rem; text-align: right; }
.torneo-ranking-card { max-width: 700px; margin-left: auto; margin-right: auto; }
.torneo-ranking-id { min-width: 4.5rem; text-align: left; display: inline-block; }
@media (max-width: 600px) {
  .torneo-ranking-header-row, .torneo-ranking-card { padding-left: 0.5rem; padding-right: 0.5rem; font-size: 0.95rem; }
  .torneo-ranking-header-col.ranking { width: 2.2rem; min-width: 1.7rem; }
  .torneo-ranking-header-col.rut { width: 3.5rem; min-width: 2.5rem; }
  .torneo-ranking-header-col.puntos { width: 4.5rem; min-width: 3.5rem; }
}
.torneo-ranking-table {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 800px;
    margin: 0 auto 2rem auto;
}
.torneo-ranking-row {
    display: grid;
    grid-template-columns: 100px 140px 1fr 120px;
    align-items: center;
    border-radius: 16px;
    min-height: 56px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 2px 8px #0002;
    margin-bottom: 0;
    word-break: break-word;
}
.torneo-ranking-header {
    background: none;
    color: #ffd700;
    font-size: 1.08rem;
    font-weight: 800;
    box-shadow: none;
    min-height: 38px;
    margin-bottom: 0.2rem;
    display: grid;
    grid-template-columns: 100px 140px 1fr 120px;
    text-align: center;
}
.torneo-ranking-col {
    padding: 0.5rem 0.7rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    display: flex;
    align-items: center;
    min-width: 0;
    justify-content: flex-start;
}
.torneo-ranking-header .torneo-ranking-col {
    justify-content: center;
}
.torneo-ranking-col.nombre, .torneo-ranking-col.rut {
    overflow-wrap: anywhere;
    word-break: break-word;
}
.torneo-ranking-row.top1 { background: linear-gradient(90deg, #fff9e6 0%, #ffd700 100%); color: #1a472a; box-shadow: 0 4px 20px #ffd70066; }
.torneo-ranking-row.top2 { background: linear-gradient(90deg, #f5f5f5 0%, #e0e0e0 100%); color: #1a472a; box-shadow: 0 4px 16px #e0e0e066; }
.torneo-ranking-row.top3 { background: linear-gradient(90deg, #ffe4b3 0%, #cd7f32 100%); color: #1a472a; box-shadow: 0 4px 16px #cd7f3266; }
.torneo-ranking-row.top4 { background: linear-gradient(90deg, #e8f5e9 0%, #66bb6a 100%); color: #1a472a; box-shadow: 0 3px 12px #66bb6a44; }
.torneo-ranking-row.top5 { background: linear-gradient(90deg, #fff3e0 0%, #ffb74d 100%); color: #1a472a; box-shadow: 0 3px 12px #ffb74d44; }
.torneo-ranking-row.top6 { background: linear-gradient(90deg, #fce4ec 0%, #f06292 100%); color: #1a472a; box-shadow: 0 3px 12px #f0629244; }
.torneo-ranking-row.top7 { background: linear-gradient(90deg, #e1f5fe 0%, #4fc3f7 100%); color: #1a472a; box-shadow: 0 3px 12px #4fc3f744; }
.torneo-ranking-row.top8 { background: linear-gradient(90deg, #f3e5f5 0%, #ba68c8 100%); color: #1a472a; box-shadow: 0 3px 12px #ba68c844; }
.torneo-ranking-row.top9 { background: linear-gradient(90deg, #fff8e1 0%, #ffd54f 100%); color: #1a472a; box-shadow: 0 3px 12px #ffd54f44; }
.torneo-ranking-row.top10 { background: linear-gradient(90deg, #e0f2f1 0%, #4db6ac 100%); color: #1a472a; box-shadow: 0 3px 12px #4db6ac44; }
.torneo-ranking-row.top11 { background: linear-gradient(90deg, #ffebee 0%, #ef5350 100%); color: #fff; box-shadow: 0 3px 12px #ef535044; }
.torneo-ranking-row.top12 { background: linear-gradient(90deg, #e8eaf6 0%, #7e57c2 100%); color: #fff; box-shadow: 0 3px 12px #7e57c244; }
.torneo-ranking-row.top13 { background: linear-gradient(90deg, #1a237e 0%, #3949ab 100%); color: #fff; box-shadow: 0 3px 12px #3949ab44; }
.torneo-ranking-row.top14 { background: linear-gradient(90deg, #004d40 0%, #00897b 100%); color: #fff; box-shadow: 0 3px 12px #00897b44; }
.torneo-ranking-row.top15 { background: linear-gradient(90deg, #bf360c 0%, #f4511e 100%); color: #fff; box-shadow: 0 3px 12px #f4511e44; }
.torneo-ranking-row.top16 { background: linear-gradient(90deg, #4a148c 0%, #8e24aa 100%); color: #fff; box-shadow: 0 3px 12px #8e24aa44; }
.torneo-ranking-row.top17 { background: linear-gradient(90deg, #1b5e20 0%, #43a047 100%); color: #fff; box-shadow: 0 3px 12px #43a04744; }
.torneo-ranking-row.top18 { background: linear-gradient(90deg, #b71c1c 0%, #e53935 100%); color: #fff; box-shadow: 0 3px 12px #e5393544; }
.torneo-ranking-row.top19 { background: linear-gradient(90deg, #0d47a1 0%, #1976d2 100%); color: #fff; box-shadow: 0 3px 12px #1976d244; }
.torneo-ranking-row.top20 { background: linear-gradient(90deg, #e65100 0%, #fb8c00 100%); color: #fff; box-shadow: 0 3px 12px #fb8c0044; }
.torneo-ranking-row.resto { background: #232323; color: #fff; }
.torneo-ranking-pos-number { font-size: 1.5rem; font-weight: 900; text-align: center; min-width: 2.5rem; }
.white-text { color: #fff !important; text-shadow: 0 1px 2px #0008; }
.gold-text { color: #ffd700 !important; font-weight: 700; text-shadow: 0 1px 2px #0008; text-align: right; }
.dark-text { color: #1a472a !important; text-shadow: 0 1px 2px #fff8; }
@media (max-width: 900px) {
  .torneo-ranking-table { max-width: 99vw; }
  .torneo-ranking-row, .torneo-ranking-header { grid-template-columns: 80px 90px 1fr 80px; font-size: 0.98rem; }
}
@media (max-width: 600px) {
  .torneo-ranking-table { max-width: 100vw; }
  .torneo-ranking-row, .torneo-ranking-header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    font-size: 0.98rem;
    padding: 0.2rem 0.1rem;
    border-radius: 14px;
    text-align: center;
  }
  .torneo-ranking-header {
    background: none;
    color: #ffd700;
    font-size: 1.05rem;
    font-weight: 800;
    box-shadow: none;
    margin-bottom: 0.2rem;
    padding: 0.2rem 0.1rem;
  }
  .torneo-ranking-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.1rem;
    min-width: 0;
    width: 25%;
    text-align: center;
    white-space: normal;
    font-size: 0.98rem;
  }
  .torneo-ranking-pos-number { font-size: 1.1rem; min-width: 1.7rem; margin-bottom: 0; }
  .torneo-hero-banner-wrapper {
    max-width: 100vw;
    border-radius: 12px;
    overflow: hidden;
  }
  .torneo-hero-banner {
    width: 100vw;
    max-width: 100vw;
    height: auto;
    min-height: unset;
    max-height: 50vw;
    object-fit: contain;
    border-radius: 12px;
    margin-bottom: 1.2rem;
  }
}

.torneo-ranking-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #1a472a;
    border-radius: 18px;
    padding: 2.5rem 1.5rem;
    margin: 2rem auto;
    max-width: 500px;
    box-shadow: 0 2px 16px #0004;
}
.torneo-ranking-fallback-icon {
    font-size: 3rem;
    color: #ffd700;
    margin-bottom: 1rem;
}
.torneo-ranking-fallback-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffd700;
    margin-bottom: 0.7rem;
    text-align: center;
}
.torneo-ranking-fallback-msg {
    color: #fff;
    font-size: 1.08rem;
    text-align: center;
}
