.challenge-banner {
    position: relative;
    overflow: hidden;
    background: #0d0520;
}

.challenge-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse 900px 200px at 25% 50%, rgba(245, 175, 25, 0.1), transparent),
        radial-gradient(ellipse 600px 250px at 75% 50%, rgba(241, 39, 17, 0.06), transparent),
        radial-gradient(ellipse 400px 150px at 50% 30%, rgba(245, 175, 25, 0.05), transparent);
}

.challenge-banner::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f5af19, #f12711, #f5af19, transparent);
    opacity: 0.6;
}

.challenge-glow-left,
.challenge-glow-right {
    position: absolute;
    top: 50%;
    z-index: 1;
    width: 100px;
    height: 200px;
    background: radial-gradient(ellipse at center, #f5af19, transparent 70%);
    opacity: 0.12;
    transform: translateY(-50%);
}

.challenge-glow-left {
    left: -50px;
}

.challenge-glow-right {
    right: -50px;
}

.challenge-inner {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 40px 24px;
    gap: 40px;
}

.challenge-text {
    flex: 1;
    min-width: 260px;
}

.challenge-icon-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}

.challenge-icon {
    font-size: 40px;
    animation: challenge-float 3s ease-in-out infinite;
}

.challenge-text h2 {
    margin: 0;
    color: #f5af19;
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 3px;
    background: linear-gradient(135deg, #f5af19 0%, #f12711 50%, #f5af19 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.challenge-text p {
    max-width: 550px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.7;
}

.challenge-cards {
    display: flex;
    flex-shrink: 0;
    gap: 16px;
}

.challenge-mini-card {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    width: 200px;
    min-height: 130px;
    padding: 16px;
    color: inherit;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(245, 175, 25, 0.2);
    border-radius: 12px;
    transition: 0.3s;
}

.challenge-mini-card:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(245, 175, 25, 0.5);
    box-shadow: 0 6px 24px rgba(245, 175, 25, 0.15);
    transform: translateY(-2px);
}

.challenge-status {
    align-self: flex-start;
    margin-bottom: 8px;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 10px;
}

.challenge-status.is-recruiting {
    color: #f5af19;
    background: rgba(245, 175, 25, 0.2);
}

.challenge-status.is-finished {
    color: rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.12);
}

.challenge-card-title {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 8px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.challenge-card-reward {
    margin-top: auto;
    overflow: hidden;
    color: #f12711;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.challenge-card-reward small {
    margin-left: 3px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: 400;
}

.challenge-actions {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 10px;
}

.challenge-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 12px 28px;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 25px;
    gap: 6px;
    transition: 0.3s;
}

.challenge-button-primary {
    background: linear-gradient(135deg, #f5af19, #f12711);
    box-shadow: 0 4px 16px rgba(245, 175, 25, 0.35);
    animation: challenge-pulse 2s ease-in-out infinite;
}

.challenge-button-primary:hover {
    box-shadow: 0 6px 24px rgba(245, 175, 25, 0.55);
    transform: translateY(-2px);
}

.challenge-button-secondary {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.challenge-button-secondary:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
}

@keyframes challenge-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-6px);
    }
}

@keyframes challenge-pulse {
    0%,
    100% {
        box-shadow: 0 4px 16px rgba(245, 175, 25, 0.35);
    }

    50% {
        box-shadow: 0 4px 32px rgba(245, 175, 25, 0.6);
    }
}

@media (max-width: 1280px) {
    .challenge-inner {
        flex-wrap: wrap;
        gap: 24px;
    }

    .challenge-text {
        flex-basis: calc(100% - 230px);
    }

    .challenge-cards {
        order: 3;
        width: 100%;
    }

    .challenge-mini-card {
        flex: 1;
        width: auto;
    }
}

@media (max-width: 750px) {
    .challenge-inner {
        display: block;
        padding: 28px 15px;
    }

    .challenge-text,
    .challenge-cards {
        margin-bottom: 20px;
    }

    .challenge-icon {
        font-size: 32px;
    }

    .challenge-text h2 {
        font-size: 28px;
    }

    .challenge-text p {
        font-size: 14px;
    }

    .challenge-cards {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .challenge-mini-card {
        width: 100%;
        min-height: 125px;
        padding: 14px;
    }

    .challenge-actions {
        flex-direction: row;
    }

    .challenge-button {
        flex: 1;
        padding: 11px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .challenge-cards {
        grid-template-columns: 1fr;
    }

    .challenge-mini-card {
        min-height: 115px;
    }
}

.rank-challenge-page {
    color: #1a1a1a;
    background: #fff;
}

.rank-challenge-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 420px;
    overflow: hidden;
    background: #0d0520;
}

.rank-challenge-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(ellipse 800px 300px at 20% 50%, rgba(245, 175, 25, 0.12), transparent),
        radial-gradient(ellipse 600px 400px at 80% 50%, rgba(241, 39, 17, 0.08), transparent),
        radial-gradient(ellipse 500px 200px at 50% 30%, rgba(245, 175, 25, 0.06), transparent);
}

.rank-challenge-hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    height: 2px;
    background: linear-gradient(90deg, transparent, #f5af19, #f12711, #f5af19, transparent);
    opacity: 0.7;
}

.rank-challenge-glow {
    position: absolute;
    top: 50%;
    z-index: 1;
    width: 120px;
    height: 300px;
    background: radial-gradient(ellipse at center, #f5af19, transparent 70%);
    opacity: 0.15;
    transform: translateY(-50%);
}

.rank-challenge-glow-left {
    left: -60px;
}

.rank-challenge-glow-right {
    right: -60px;
}

.rank-challenge-hero-inner {
    position: relative;
    z-index: 3;
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 16px;
    text-align: center;
}

.rank-challenge-hero-icon {
    margin-bottom: 16px;
    font-size: 64px;
    animation: rank-challenge-float 3s ease-in-out infinite;
}

.rank-challenge-hero h1 {
    margin: 0 0 16px;
    color: #f5af19;
    font-size: 56px;
    font-weight: 900;
    letter-spacing: 4px;
    background: linear-gradient(135deg, #f5af19 0%, #f12711 50%, #f5af19 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rank-challenge-hero p {
    max-width: 700px;
    margin: 0 auto 36px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 20px;
    line-height: 1.8;
}

.rank-challenge-hero-actions,
.rank-challenge-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.rank-challenge-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 14px 36px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 30px;
    transition: 0.3s;
}

.rank-challenge-button-primary {
    background: linear-gradient(135deg, #f5af19, #f12711);
    box-shadow: 0 4px 20px rgba(245, 175, 25, 0.4);
    animation: rank-challenge-pulse 2s ease-in-out infinite;
}

.rank-challenge-button-primary:hover {
    color: #fff;
    box-shadow: 0 6px 30px rgba(245, 175, 25, 0.6);
    transform: translateY(-2px);
}

.rank-challenge-button-secondary {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.rank-challenge-button-secondary:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.rank-challenge-stats {
    position: relative;
    padding: 28px 0;
    background: linear-gradient(135deg, #0761d2 0%, #0049b7 100%);
}

.rank-challenge-stats::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #f5af19, transparent);
    opacity: 0.6;
}

.rank-challenge-stats-inner {
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    gap: 80px;
}

.rank-challenge-stat-item {
    min-width: 140px;
    text-align: center;
}

.rank-challenge-stat-item strong {
    display: block;
    color: #fff;
    font-size: 42px;
    font-weight: 900;
    line-height: 1.1;
}

.rank-challenge-stat-item strong small {
    font-size: 24px;
}

.rank-challenge-stat-item span {
    display: block;
    margin-top: 6px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    letter-spacing: 1px;
}

.rank-challenge-stat-divider {
    width: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.rank-challenge-main {
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 16px;
}

.rank-challenge-section-title {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #1a1a1a;
    font-size: 28px;
    font-weight: 800;
    gap: 10px;
}

.rank-challenge-section-title::before {
    content: "";
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, #f5af19, #f12711);
    border-radius: 2px;
}

.rank-challenge-section-subtitle {
    margin: 0 0 28px;
    color: #999;
    font-size: 14px;
}

.rank-challenge-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
    gap: 24px;
}

.rank-challenge-card {
    position: relative;
    z-index: 0;
    display: flex;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    transition: 0.3s;
}

.rank-challenge-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;
    background: linear-gradient(135deg, #f5af19, #f12711);
    border-radius: 15px;
    opacity: 0;
    transition: 0.3s;
}

.rank-challenge-card:hover {
    border-color: transparent;
    box-shadow: 0 8px 30px rgba(245, 175, 25, 0.2);
}

.rank-challenge-card:hover::before {
    opacity: 1;
}

.rank-challenge-card-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
}

.rank-challenge-thumb {
    position: relative;
    flex-shrink: 0;
    width: 300px;
    min-height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.rank-challenge-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.rank-challenge-card:hover .rank-challenge-thumb img {
    transform: scale(1.05);
}

.rank-challenge-thumb-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 220px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 36px;
    gap: 8px;
}

.rank-challenge-thumb-placeholder strong {
    font-size: 20px;
    letter-spacing: 2px;
}

.rank-challenge-status {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 1;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid;
    border-radius: 20px;
}

.rank-challenge-status.is-recruiting {
    color: #d46b08;
    background: #fff7e6;
    border-color: #ffd591;
}

.rank-challenge-status.is-revealed {
    color: #389e0d;
    background: #f6ffed;
    border-color: #b7eb8f;
}

.rank-challenge-card-body {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 28px 32px;
    background: #fff;
    border-radius: 0 13px 13px 0;
}

.rank-challenge-card-body h2 {
    margin: 0 0 14px;
    color: #1a1a1a;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.4;
}

.rank-challenge-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 12px;
    color: #666;
    font-size: 13px;
    gap: 10px 16px;
}

.rank-challenge-reward {
    color: #cf1322;
    font-size: 24px;
    font-weight: 800;
}

.rank-challenge-reward small {
    margin-left: 2px;
    color: #999;
    font-size: 13px;
    font-weight: 400;
}

.rank-challenge-tags {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 16px;
    gap: 8px;
}

.rank-challenge-tags span {
    padding: 3px 10px;
    color: #015eea;
    font-size: 11px;
    font-weight: 500;
    background: #e6f4ff;
    border-radius: 4px;
}

.rank-challenge-description {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 16px;
    color: #666;
    font-size: 14px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.rank-challenge-card-footer {
    display: flex;
    align-items: center;
}

.rank-challenge-detail-button {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    background: linear-gradient(107deg, #015eea 0%, #00c0fa 100%);
    border-radius: 20px;
    transition: 0.3s;
}

.rank-challenge-detail-button:hover {
    color: #fff;
    box-shadow: 0 4px 15px rgba(1, 94, 234, 0.3);
    transform: translateX(3px);
}

.rank-challenge-pagination {
    padding-top: 10px;
    padding-bottom: 20px;
}

.rank-challenge-cta {
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(135deg, #0d0520 0%, #1a0a3a 100%);
}

.rank-challenge-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: radial-gradient(ellipse 600px 200px at 50% 50%, rgba(245, 175, 25, 0.1), transparent);
}

.rank-challenge-cta-inner {
    position: relative;
    z-index: 2;
    box-sizing: border-box;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

.rank-challenge-cta h2 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 32px;
    font-weight: 800;
}

.rank-challenge-cta p {
    margin: 0 0 32px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 16px;
    line-height: 1.8;
}

.rank-challenge-cta .rank-challenge-button {
    padding: 16px 40px;
    font-size: 17px;
}

@keyframes rank-challenge-float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes rank-challenge-pulse {
    0%,
    100% {
        box-shadow: 0 4px 20px rgba(245, 175, 25, 0.4);
    }

    50% {
        box-shadow: 0 4px 40px rgba(245, 175, 25, 0.7);
    }
}

@media (max-width: 768px) {
    .rank-challenge-hero {
        min-height: 300px;
    }

    .rank-challenge-hero-inner {
        padding: 45px 16px;
    }

    .rank-challenge-hero-icon {
        font-size: 48px;
    }

    .rank-challenge-hero h1 {
        font-size: 32px;
    }

    .rank-challenge-hero p {
        font-size: 15px;
    }

    .rank-challenge-stats-inner {
        gap: 20px;
    }

    .rank-challenge-stat-item {
        flex: 1;
        min-width: 0;
    }

    .rank-challenge-stat-item strong {
        font-size: 28px;
    }

    .rank-challenge-stat-item strong small {
        font-size: 16px;
    }

    .rank-challenge-stat-item span {
        font-size: 12px;
    }

    .rank-challenge-card {
        flex-direction: column;
    }

    .rank-challenge-thumb {
        width: 100%;
        min-height: 180px;
        max-height: 240px;
    }

    .rank-challenge-card-body {
        padding: 20px;
        border-radius: 0 0 13px 13px;
    }

    .rank-challenge-card-body h2 {
        font-size: 18px;
    }

    .rank-challenge-reward {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .rank-challenge-hero-actions,
    .rank-challenge-cta-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .rank-challenge-button,
    .rank-challenge-cta .rank-challenge-button {
        width: 100%;
        padding: 13px 20px;
        font-size: 15px;
    }

    .rank-challenge-stats {
        padding: 22px 0;
    }

    .rank-challenge-stats-inner {
        gap: 10px;
    }

    .rank-challenge-stat-item strong {
        font-size: 24px;
    }

    .rank-challenge-stat-item span {
        letter-spacing: 0;
    }

    .rank-challenge-main {
        padding: 32px 15px;
    }

    .rank-challenge-section-title {
        font-size: 24px;
    }

    .rank-challenge-card-body {
        padding: 18px 16px;
    }

    .rank-challenge-meta {
        display: grid;
        grid-template-columns: 1fr;
    }

    .rank-challenge-cta {
        padding: 45px 0;
    }

    .rank-challenge-cta h2 {
        font-size: 26px;
    }

    .rank-challenge-cta p {
        font-size: 14px;
    }
}
