/* ===== PREMIUM TOURNAMENT ===== */ .tournament-content {
    display: grid;
    grid-template-areas: none;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto;
    align-content: start;
    gap: 2rem;
    padding: 2rem;
    box-sizing: border-box;
    font-family: Montserrat, sans-serif;
}
.tournament-content .tournament-dashboard-wrapper {
    grid-area: auto;
    padding: 0;
    min-width: 0;
}
.tournament-content .tournament-participation {
    grid-area: auto;
    grid-template-rows: auto auto auto;
    padding: 0;
    min-width: 0;
}
.tournament-content .tournament-info-wrapper, .tournament-content .tournament-participants-header-wrapper, .tournament-content .tournament-participants-wrapper {
    padding: 0 0 1.2rem;
}
@media (max-width: 767px) {
    .tournament-content {
        padding: 1rem;
        gap: 1.2rem;
    }
}
/* ===== TOURNAMENT HERO ===== */ .tournament-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 18rem;
    padding: 3rem;
    overflow: hidden;
    border: 1px solid #655439;
    border-radius: 1.2rem;
    background: linear-gradient(110deg,
        #20242c 0%, #292720 55%, #443722 100%);
    box-sizing: border-box;
}
.tournament-hero-text {
    position: relative;
    z-index: 2;
    width: 65%;
    text-align: left;
}
.tournament-hero-label {
    color: #c5a36a;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: .35rem;
    margin-bottom: 1.2rem;
}
.tournament-hero-title {
    color: #e8bd63;
    font-size: 4.2rem;
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
    margin: 0 0 1.2rem;
}
.tournament-hero-description {
    color: #b8bec9;
    font-size: 1.3rem;
    font-weight: 500;
    line-height: 1.7;
    white-space: pre-line;
}
.tournament-hero-art {
    position: absolute;
    right: 0;
    top: 0;
    width: 40%;
    height: 100%;
    pointer-events: none;
}
@media (max-width: 767px) {
    .tournament-hero {
        min-height: 14rem;
        padding: 1.8rem;
    }
    .tournament-hero-title {
        font-size: 2.6rem;
    }
    .tournament-hero-description {
        font-size: 1.1rem;
    }
}

.tournament-hero-art { width: 50%; background: url(/images/tournament/tournament-trophy.webp) center right / auto 100% no-repeat; mask-image: linear-gradient(to right, transparent, black 35%); }

.tournament-hero-art { width: auto; height: 100%; aspect-ratio: 1.65; background-size: auto 120%; background-position: center 45%; mask-image: linear-gradient(to right, transparent 0%, black 30%); }

.tournament-content { grid-template-columns: 30rem minmax(0, 1fr); grid-template-rows: auto auto; align-items: start; }
.tournament-content .tournament-hero { grid-column: 1 / -1; }
@media (max-width: 767px) { .tournament-content { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; } }

.tournament-content .tournament-dashboard { background: linear-gradient(155deg,#22252c,#181c24 65%,#30291f); border: 1px solid #655439; border-radius: 1.2rem; padding: 2rem; grid-template-areas: none; grid-template-columns: 1fr; grid-template-rows: auto; grid-auto-rows: auto; gap: 2rem; box-sizing: border-box; }
.tournament-content .tournament-dashboard > div, .tournament-content .tournament-dashboard-heading { grid-area: auto; min-width: 0; }
.tournament-dashboard-heading { font-size: 1.7rem !important; font-weight: 600; color: #b8bec9; }
.tournament-timer { width: 100%; max-width: 25rem; }
.tournament-timer svg { width: 100%; height: auto; }

#tournament-timer-progress-ring { stroke: #343943 !important; stroke-width: 18 !important; }
#tournament-timer-progress-segment { stroke: #e8bd63 !important; stroke-width: 18 !important; stroke-linecap: round; filter: drop-shadow(0 0 5px rgba(232,189,99,.25)); }
.tournament-timer-days, .tournament-timer-days-number { font-family: Montserrat,sans-serif; font-size: 2rem; font-weight: 500; color: #b8bec9; }
.tournament-timer-time { font-family: Montserrat,sans-serif; font-size: 3rem; font-weight: 600; font-variant-numeric: tabular-nums; color: #e8bd63; }
.tournament-content .tournament-conditions { height: auto; }

.tournament-content .tournament-dashboard-participate-button { height: 4.8rem; border-radius: .8rem; font-family: Montserrat,sans-serif; font-size: 1.6rem; font-weight: 600; }
.tournament-content .tournament-dashboard-participate-button:not(:disabled) { background: linear-gradient(135deg,#30291f,#453923); color: #e8bd63; border: 1px solid #967a45; box-shadow: none; }
.tournament-content .tournament-dashboard-participate-button:not(:disabled):hover { background: #504128; }
.tournament-content .tournament-dashboard-participate-button:disabled { background: #292d36; color: #747c8c; border: 1px solid #343943; box-shadow: none; }
.tournament-conditions-wrapper { background: rgba(20,23,30,.65); border: 1px solid #454039; border-radius: .8rem; padding: 1.4rem; box-sizing: border-box; }
.tournament-conditions-label { color: #b8bec9; font-size: 1.3rem; font-weight: 600; }
.tournament-condition { color: #b8bec9; font-size: 1.2rem; line-height: 1.6; }
.tournament-highlight { color: #e8bd63; font-family: Montserrat,sans-serif; font-weight: 600; }
.tournament-condition-status { background: #747c8c; flex-shrink: 0; }
.tournament-condition-status[data-condition-status=done] { background: #65c99c; box-shadow: none; }

.tournament-content .tournament-info { height: auto; padding: 0; background: transparent; }
.tournament-prize-podium { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.tournament-prize-card { display: flex; align-items: center; justify-content: center; gap: 1.5rem; min-height: 7rem; padding: 1.2rem; border: 1px solid; border-radius: 1rem; box-sizing: border-box; }
.tournament-prize-card[data-rank="1"] { color: #e8bd63; background: linear-gradient(135deg,#22252c,#403421); border-color: #967a45; }
.tournament-prize-card[data-rank="2"] { color: #c1c7d1; background: linear-gradient(135deg,#22252c,#303640); border-color: #59616e; }
.tournament-prize-card[data-rank="3"] { color: #cd9567; background: linear-gradient(135deg,#22252c,#3b2c24); border-color: #805b40; }
.tournament-prize-medal { display: flex; align-items: center; justify-content: center; width: 4rem; height: 4rem; border: 1px solid currentColor; border-radius: 50%; font-size: 2rem; font-weight: 700; }
.tournament-prize-amount { font-size: 2.4rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.tournament-prize-medal { position: relative; border: none; width: 5.6rem; height: 5.6rem; flex-shrink: 0; font-size: 2.4rem; }
.tournament-prize-medal::before { content: ''; position: absolute; inset: 0; background: currentColor; mask: url(/images/tournament/laurel.svg) center / contain no-repeat; }

.tournament-prize-medal { width: 6.8rem; height: 5.6rem; padding-bottom: .6rem; box-sizing: border-box; }
.tournament-prize-medal::before { inset: 0; mask-size: 100% 85%; mask-position: center bottom; mask-repeat: no-repeat; }

.tournament-prize-medal { width: 5.4rem; height: 5.4rem; min-width: 5.4rem; padding: 0; border: 2px solid currentColor; border-radius: 50%; font-size: 2.4rem; font-weight: 700; background: radial-gradient(circle at 30% 25%,rgba(255,255,255,.16),rgba(255,255,255,.02) 65%); box-shadow: inset 0 0 0 .4rem rgba(0,0,0,.15),0 .3rem .8rem rgba(0,0,0,.2); }
.tournament-prize-medal::before,.tournament-prize-medal::after { content: none !important; display: none !important; }

.tournament-prize-medal { border: 2px solid currentColor; background: radial-gradient(circle at 25% 20%,rgba(255,255,255,.28),transparent 60%),linear-gradient(145deg,rgba(255,255,255,.08),rgba(0,0,0,.25)); box-shadow: inset 0 0 0 .25rem rgba(0,0,0,.3),inset 0 0 0 .35rem rgba(255,255,255,.16),0 .3rem .8rem rgba(0,0,0,.3); text-shadow: 0 2px 2px rgba(0,0,0,.4); line-height: 1; }
.tournament-prize-card { align-items: center; gap: 1.6rem; }
.tournament-prize-amount { display: flex; align-items: center; line-height: 1; margin: 0; padding: 0; white-space: nowrap; letter-spacing: -.04rem; }

.tournament-participant-list { counter-reset: tournament-rank; }
.tournament-content .tournament-participant { counter-increment: tournament-rank; grid-template-columns: 3.5rem minmax(0,2fr) 1fr 1fr; align-items: center; }
.tournament-participant::before { content: counter(tournament-rank); color: @9298a6; font-size: 1.5rem; font-weight: 600; text-align: center; }
.tournament-content .tournament-participants-header { grid-template-columns: 3.5rem minmax(0,2fr) 1fr 1fr; }
.tournament-participants-header::before { content: "#"; color: #9298a6; text-align: center; }
.tournament-content .tournament-participants-header-column { font-size: 1.3rem; font-weight: 600; color: #9298a6; letter-spacing: .08rem; }

.tournament-content .tournament-participant { border: 1px solid #292e37; box-sizing: border-box; border-radius: .8rem; }
.tournament-participant:nth-child(1) { background: linear-gradient(110deg,#382f22,#22252c 85%); border-color: #967a45; }
.tournament-participant:nth-child(2) { background: linear-gradient(110deg,#303640,#22252c 85%); border-color: #59616e; }
.tournament-participant:nth-child(3) { background: linear-gradient(110deg,#382b24,#22252c 85%); border-color: #805b40; }
.tournament-participant:nth-child(1)::before,.tournament-participant:nth-child(1) .tournament-participant-reward-value { color: #e8bd63; }
.tournament-participant:nth-child(2)::before,.tournament-participant:nth-child(2) .tournament-participant-reward-value { color: #c1c7d1; }
.tournament-participant:nth-child(3)::before,.tournament-participant:nth-child(3) .tournament-participant-reward-value { color: #cd9567; }

.tournament-content .tournament-participants-update-button { width: 3.2rem; height: 3.2rem; background: #30291f; border: 1px solid #655439; border-radius: .7rem; box-shadow: none; }
.tournament-content .tournament-participants-update-button:hover,.tournament-content .tournament-participants-update-button:focus { background: #453923; border-color: #967a45; box-shadow: none; }
.tournament-content .tournament-participants-button-icon { width: 1.6rem; height: 1.6rem; fill: #e8bd63; }

.tournament-content .tournament-participants { --avatar-size: 3.8rem; --participant-height: 5.8rem; }
.tournament-participant-name { font-family: Montserrat,sans-serif; font-size: 1.4rem; font-weight: 600; color: #e2e5eb; }
.tournament-participant-points-value,.tournament-participant-reward-value { font-family: Montserrat,sans-serif; font-size: 1.4rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.tournament-participant-points-value { color: #c1c7d1; }
.tournament-participant:nth-child(n+4) .tournament-participant-reward-value { color: #e8bd63; }
.tournament-participant:nth-child(n+4)::before { color: #9298a6; }

.tournament-participants-header-column:nth-child(1) { justify-content: flex-start; padding-left: 5.5rem; }
.tournament-content .tournament-participant-list.with-desktop-scroll { scrollbar-width: thin; scrollbar-color: #454a54 transparent; }
.tournament-participant-list::-webkit-scrollbar { width: .4rem; }
.tournament-participant-list::-webkit-scrollbar-track { background: transparent; }
.tournament-participant-list::-webkit-scrollbar-thumb { background: #454a54; border-radius: 1rem; }
.tournament-participant-list::-webkit-scrollbar-thumb:hover { background: #967a45; }
.tournament-participant-list::-webkit-scrollbar-button { display: none; }

.tournament-content .tournament-participant-list.with-desktop-scroll { scrollbar-width: auto; scrollbar-color: auto; }
.tournament-content .tournament-participant-list::-webkit-scrollbar { width: .4rem; background: transparent; }
.tournament-content .tournament-participant-list::-webkit-scrollbar-thumb { background: #454a54; border-radius: 1rem; }
.tournament-content .tournament-participant-list::-webkit-scrollbar-thumb:hover { background: #967a45; }
.tournament-content .tournament-participant-list::-webkit-scrollbar-button { display: none; width: 0; height: 0; }

@media (max-width: 767px) { .tournament-prize-podium { gap: .6rem; } .tournament-prize-card { flex-direction: column; gap: .7rem; padding: 1rem .3rem; min-width: 0; } .tournament-prize-medal { width: 3.6rem; height: 3.6rem; min-width: 3.6rem; font-size: 1.8rem; } .tournament-prize-amount { font-size: 1.5rem; letter-spacing: 0; } }

@media (max-width: 767px) { .tournament-content .tournament-dashboard { padding: 1.4rem; gap: 1.2rem; } .tournament-timer { max-width: 18rem; } .tournament-timer-time { font-size: 2.5rem; } .tournament-timer-days,.tournament-timer-days-number { font-size: 1.6rem; } .tournament-content .tournament-dashboard-participate-button { width: 100%; height: 4rem; } .tournament-conditions-wrapper { padding: 1.2rem; } .tournament-condition { margin: .8rem 0; } }

@media (max-width: 767px) { .tournament-content .tournament-participant,.tournament-content .tournament-participants-header { grid-template-columns: 2rem minmax(0,1fr) 7.5rem 5.5rem; padding: 0 .6rem; gap: .4rem; } .tournament-content .tournament-participants-header { padding-right: 3rem; min-height: 3rem; } .tournament-content .tournament-participants-update-button { left: auto; right: 0; width: 2.5rem; height: 2.5rem; } .tournament-content .tournament-participants { --avatar-size: 3rem; --participant-height: 5rem; } .tournament-participant-user { gap: .6rem; min-width: 0; } .tournament-participant-name,.tournament-participant-points-value,.tournament-participant-reward-value { font-size: 1.1rem; } .tournament-content .tournament-participants-header-column { font-size: 1rem; letter-spacing: 0; padding: 0; } }
