/* ===================================================================
   RunnerOn Challenge Ranking - Olympic Ceremony Style
   -------------------------------------------------------------------
   구조:
   1. 인트로 오버레이 (3단계 시네마틱 애니메이션)
   2. 컨페티 효과
   3. 메인 페이지 (배경, 히어로, 시상대, 관중석, 랭킹 리스트, CTA)
   4. 상장 모달 (금/은/동/참가)
   5. 반응형 (768px, 480px, 360px)
   6. prefers-reduced-motion 지원
   7. 라이트/다크 모드 완벽 지원

   성능 최적화:
   - GPU 합성: transform translateZ(0), will-change 사용
   - contain: layout style 로 리플로우 범위 제한
   - 모바일: 무거운 애니메이션 비활성화
   - backdrop-filter 사용 안 함
   =================================================================== */

/* ===== INTRO OVERLAY ===== */
.cr-intro {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: radial-gradient(ellipse at 50% 40%, #141e3e 0%, #0a0e27 60%, #05071a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cr-intro--fade { animation: cr-fadeOut 0.6s ease forwards; }

/* Global skip */
.cr-intro-skip-global {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100000;
    padding: 8px 20px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.cr-intro-skip-global:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* Phase system - use visibility + opacity for smooth transitions */
.cr-intro-phase {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    padding: 20px;
    transform: scale(0.92) translateZ(0);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
    pointer-events: none;
}

.cr-intro-phase--active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateZ(0);
    pointer-events: auto;
}

.cr-intro-phase--exit {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.06) translateZ(0);
    pointer-events: none;
}

/* ===== Phase 1: Challenge name ===== */
.cr-intro-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(78,143,255,0.12) 0%, transparent 70%);
    animation: cr-glowPulse 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes cr-glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 1; }
}

/* Phase 1 elements with staggered entrance */
.cr-intro-p1-badge {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,215,0,0.6);
    letter-spacing: 5px;
    margin-bottom: 20px;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(10px);
}

.cr-intro-phase1.cr-intro-phase--active .cr-intro-p1-badge {
    animation: cr-staggerIn 0.6s ease 0.2s forwards;
}

.cr-intro-p1-title {
    font-size: clamp(28px, 6vw, 48px);
    font-weight: 900;
    color: #fff;
    text-align: center;
    margin: 0 0 14px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    opacity: 0;
    transform: translateY(16px);
}

.cr-intro-phase1.cr-intro-phase--active .cr-intro-p1-title {
    animation: cr-staggerIn 0.7s ease 0.5s forwards;
}

.cr-intro-p1-period {
    font-size: 14px;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
    margin-bottom: 10px;
    opacity: 0;
}

.cr-intro-phase1.cr-intro-phase--active .cr-intro-p1-period {
    animation: cr-staggerIn 0.5s ease 0.9s forwards;
}

.cr-intro-p1-participants {
    font-size: 15px;
    font-weight: 600;
    color: rgba(78,143,255,0.8);
    opacity: 0;
}

.cr-intro-phase1.cr-intro-phase--active .cr-intro-p1-participants {
    animation: cr-staggerIn 0.5s ease 1.2s forwards;
}

@keyframes cr-staggerIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Phase 2: Race bars ===== */
.cr-intro-race-title {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    letter-spacing: 4px;
    margin-bottom: 32px;
}

.cr-intro-race {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cr-intro-runner {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.cr-intro-runner-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    width: 140px;
}

.cr-intro-runner-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    max-width: 44px;
    max-height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.15);
    background: #1e293b;
    flex-shrink: 0;
}

.cr-intro-runner-avatar--gold { border-color: #FFD700; }
.cr-intro-runner-avatar--silver { border-color: #C0C0C0; }
.cr-intro-runner-avatar--bronze { border-color: #CD7F32; }

.cr-intro-runner-detail {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.cr-intro-runner-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cr-intro-runner-dist {
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    font-feature-settings: "tnum";
}

/* Race bar */
.cr-intro-runner-bar {
    flex: 1;
    height: 36px;
    background: rgba(255,255,255,0.06);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.cr-intro-runner-fill {
    height: 100%;
    width: 0;
    border-radius: 8px;
    transition: width 1.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.cr-intro-runner-fill--gold {
    background: linear-gradient(90deg, #B8860B, #FFD700, #FFC700);
}

.cr-intro-runner-fill--silver {
    background: linear-gradient(90deg, #808080, #C0C0C0, #D8D8D8);
}

.cr-intro-runner-fill--bronze {
    background: linear-gradient(90deg, #8B4513, #CD7F32, #DEB887);
}

/* Shine animation on fill */
.cr-intro-runner-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: cr-barShine 2s ease-in-out 1.5s;
    will-change: transform;
}

@keyframes cr-barShine {
    from { transform: translateX(0); }
    to { transform: translateX(350%); }
}

/* Medal pop */
.cr-intro-runner-medal {
    font-size: 28px;
    opacity: 0;
    transform: scale(0) translateZ(0);
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    flex-shrink: 0;
    width: 40px;
    text-align: center;
}

.cr-intro-runner-medal--show {
    opacity: 1;
    transform: scale(1) translateZ(0);
}

.cr-intro-runner--1 .cr-intro-runner-medal { transition-delay: 0s; }
.cr-intro-runner--2 .cr-intro-runner-medal { transition-delay: 0.15s; }
.cr-intro-runner--3 .cr-intro-runner-medal { transition-delay: 0.3s; }

/* ===== Phase 3: Winner spotlight ===== */
.cr-intro-winner-glow {
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,215,0,0.15) 0%, rgba(255,165,0,0.05) 50%, transparent 70%);
    animation: cr-glowPulse 2.5s ease-in-out infinite;
    pointer-events: none;
}

.cr-intro-winner-crown {
    font-size: 52px;
    margin-bottom: -4px;
    animation: cr-crownFloat 2s ease-in-out infinite;
}

@keyframes cr-crownFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(3deg); }
}

.cr-intro-winner-avatar {
    width: 120px;
    height: 120px;
    min-width: 120px;
    max-width: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #FFD700;
    margin-bottom: 16px;
    box-shadow: 0 0 40px rgba(255,215,0,0.3), 0 0 80px rgba(255,215,0,0.1);
}

.cr-intro-winner-label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,215,0,0.7);
    letter-spacing: 6px;
    margin-bottom: 6px;
}

.cr-intro-winner-name {
    font-size: clamp(30px, 7vw, 48px);
    font-weight: 900;
    background: linear-gradient(135deg, #FFD700, #FFA500, #fff, #FFD700);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: cr-shimmer 3s linear infinite;
    margin-bottom: 6px;
}

.cr-intro-winner-dist {
    font-size: 20px;
    font-weight: 700;
    color: rgba(255,255,255,0.6);
    font-feature-settings: "tnum";
    margin-bottom: 28px;
}

.cr-intro-cta-text {
    font-size: clamp(16px, 4vw, 22px);
    font-weight: 800;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(255,165,0,0.3);
}

.cr-intro-skip {
    padding: 14px 36px;
    border-radius: 999px;
    background: linear-gradient(135deg, #4e8fff, #6366f1);
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(78,143,255,0.4);
    transition: transform 0.2s;
}

.cr-intro-skip:hover { transform: translateY(-2px) scale(1.03); }

@keyframes cr-fadeOut {
    to { opacity: 0; visibility: hidden; }
}

@keyframes cr-fadeInUp {
    from { opacity: 0; transform: translateY(20px) translateZ(0); }
    to { opacity: 1; transform: translateY(0) translateZ(0); }
}

/* =====================================================
   2. CONFETTI - 컨페티 효과 (데스크톱 전용)
   ===================================================== */
.cr-confetti-wrap {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    overflow: hidden;
}

.cr-confetti-piece {
    position: absolute;
    top: -10px;
    opacity: 0;
    animation: cr-confettiFall linear forwards;
    will-change: transform, opacity;
    transform: translateZ(0);
}

@keyframes cr-confettiFall {
    0% { opacity: 1; transform: translateY(-10vh) rotate(0deg) translateZ(0); }
    100% { opacity: 0; transform: translateY(110vh) rotate(720deg) translateZ(0); }
}

/* =====================================================
   3. MAIN PAGE - 메인 페이지
   ===================================================== */
.cr-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1145 30%, #0d1b3e 60%, #0a0e27 100%);
    position: relative;
    overflow: hidden;
    padding-bottom: 80px;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.cr-page--visible {
    opacity: 1;
}

/* --- 배경 장식 (별, 빔) --- */
.cr-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.cr-bg-star {
    position: absolute;
    width: 3px;
    height: 3px;
    background: #fff;
    border-radius: 50%;
    animation: cr-twinkle 4s ease-in-out infinite;
    contain: strict;
    transform: translateZ(0);
}

@keyframes cr-twinkle {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.8; }
}

.cr-beam {
    position: absolute;
    width: 200px;
    height: 600px;
    background: linear-gradient(180deg, rgba(255,215,0,0.06) 0%, transparent 100%);
    transform-origin: top center;
    animation: cr-beamSway 10s ease-in-out infinite;
    will-change: transform;
    transform: translateZ(0);
    contain: strict;
}

.cr-beam--1 { top: 0; left: 20%; transform: rotate(-15deg); }
.cr-beam--2 { top: 0; right: 20%; transform: rotate(15deg); animation-delay: 3s; }

@keyframes cr-beamSway {
    0%, 100% { transform: rotate(-15deg) translateZ(0); opacity: 0.5; }
    50% { transform: rotate(15deg) translateZ(0); opacity: 1; }
}

/* --- 컨테이너 --- */
.cr-container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* --- 히어로: 챌린지 정보 표시 --- */
.cr-hero {
    text-align: center;
    padding: 60px 0 40px;
    animation: cr-fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.cr-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.cr-badge--active { background: rgba(76,217,100,0.15); color: #4cd964; border: 1px solid rgba(76,217,100,0.3); }
.cr-badge--ended { background: rgba(255,59,48,0.15); color: #ff6b6b; border: 1px solid rgba(255,59,48,0.3); }
.cr-badge--upcoming { background: rgba(78,143,255,0.15); color: #7ab3ff; border: 1px solid rgba(78,143,255,0.3); }

.cr-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: cr-pulse 2s ease-in-out infinite;
}

.cr-badge--active .cr-badge-dot { background: #4cd964; }
.cr-badge--ended .cr-badge-dot { background: #ff6b6b; animation: none; }
.cr-badge--upcoming .cr-badge-dot { background: #7ab3ff; }

@keyframes cr-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.cr-title {
    font-size: clamp(26px, 5vw, 38px);
    font-weight: 900;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.cr-desc {
    font-size: 15px;
    color: rgba(255,255,255,0.55);
    margin: 0 auto 28px;
    line-height: 1.6;
    max-width: 600px;
}

.cr-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.cr-meta-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.8);
}

.cr-meta-pill svg { color: rgba(255,255,255,0.4); flex-shrink: 0; }

.cr-meta-pill--accent {
    background: rgba(255,215,0,0.1);
    border-color: rgba(255,215,0,0.25);
    color: #FFD700;
}

/* =====================================================
   4. CEREMONY STAGE - 올림픽 시상식 포디엄
   ===================================================== */
.cr-stage {
    margin: 30px 0 40px;
    text-align: center;
}

/* 스테이지 헤더 */
.cr-stage-header {
    text-align: center;
    margin-bottom: 32px;
}

.cr-stage-label {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 6px;
}

.cr-stage-sub {
    font-size: 12px;
    color: rgba(255,255,255,0.25);
}

/* ===== PODIUM ===== */
.cr-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px;
}

.cr-pod {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 230px;
    contain: layout style;
    transform: translateZ(0);
    cursor: pointer;
    transition: transform 0.2s ease;
}

.cr-pod:hover { transform: translateY(-6px) translateZ(0); }

/* Hidden state for ceremony reveal */
.cr-pod--hidden {
    opacity: 0;
    transform: translateY(60px) scale(0.85) translateZ(0);
    pointer-events: none;
}

.cr-pod--show {
    opacity: 1;
    transform: translateY(0) scale(1) translateZ(0);
    animation: cr-podReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    pointer-events: auto;
}

@keyframes cr-podReveal {
    from { opacity: 0; transform: translateY(60px) scale(0.85) translateZ(0); }
    to { opacity: 1; transform: translateY(0) scale(1) translateZ(0); }
}

/* Profile */
.cr-pod-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 12px;
}

.cr-pod-crown {
    font-size: 32px;
    margin-bottom: 2px;
    animation: cr-crownBounce 2.5s ease-in-out infinite;
    will-change: transform;
    transform: translateZ(0);
}

@keyframes cr-crownBounce {
    0%, 100% { transform: translateY(0) rotate(0deg) translateZ(0); }
    25% { transform: translateY(-5px) rotate(-3deg) translateZ(0); }
    75% { transform: translateY(-3px) rotate(3deg) translateZ(0); }
}

/* Medal worn around neck - positioned below avatar */
.cr-pod-medal-worn {
    font-size: 28px;
    margin-top: -14px;
    margin-bottom: 6px;
    position: relative;
    z-index: 3;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
    animation: cr-medalSwing 3s ease-in-out infinite;
    transform-origin: top center;
    will-change: transform;
}

.cr-pod-medal-worn--gold { font-size: 32px; margin-top: -16px; }

@keyframes cr-medalSwing {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(3deg); }
    75% { transform: rotate(-3deg); }
}

/* 1st place spotlight */
.cr-pod-spotlight {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,215,0,0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    animation: cr-spotlightPulse 3s ease-in-out infinite;
}

@keyframes cr-spotlightPulse {
    0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(1); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.15); }
}

/* 위트 한마디 말풍선 */
.cr-pod-wit {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    margin-top: 4px;
    padding: 3px 10px;
    background: rgba(255,255,255,0.06);
    border-radius: 999px;
    white-space: nowrap;
}

.cr-pod-wit--gold {
    background: rgba(255,215,0,0.1);
    color: rgba(255,215,0,0.7);
    font-weight: 600;
}

/* 동기부여 배너 - 프리미엄 */
.cr-motivate {
    text-align: center;
    margin-top: 28px;
    padding: 22px 20px;
    background: linear-gradient(135deg, rgba(255,165,0,0.06), rgba(78,143,255,0.04));
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.cr-motivate-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.cr-motivate-text {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin-bottom: 6px;
}

.cr-motivate-text strong {
    color: #FFD700;
    font-weight: 800;
}

.cr-motivate-tip {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
}

.cr-motivate-tip strong {
    color: rgba(78,143,255,0.8);
    font-weight: 700;
}

/* Avatar Ring */
.cr-pod-avatar-ring {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    padding: 3px;
    margin-bottom: 10px;
}

/* 1등: 금색 글로우 펄스 (회전 대신 빛나는 효과) */
.cr-pod-avatar-ring--gold {
    width: 88px;
    height: 88px;
    background: linear-gradient(135deg, #FFD700, #FFA500, #FFD700);
    box-shadow: 0 0 20px rgba(255,215,0,0.3), 0 0 40px rgba(255,215,0,0.1);
    animation: cr-goldGlow 3s ease-in-out infinite;
    will-change: opacity, box-shadow;
}

/* 2등: 은색 링 */
.cr-pod-avatar-ring--silver {
    background: linear-gradient(135deg, #E0E0E0, #A0A0A0, #E0E0E0);
}

/* 3등: 동색 링 */
.cr-pod-avatar-ring--bronze {
    background: linear-gradient(135deg, #E8A87C, #CD7F32, #E8A87C);
}

/* 금색 글로우 펄스 애니메이션 (transform 대신 opacity만 사용하여 가벼움) */
@keyframes cr-goldGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(255,215,0,0.25), 0 0 40px rgba(255,215,0,0.08); }
    50% { box-shadow: 0 0 28px rgba(255,215,0,0.5), 0 0 56px rgba(255,215,0,0.15); }
}

.cr-pod-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #1e293b;
    display: block;
}

.cr-pod-rank-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
    color: #fff;
    z-index: 2;
    border: 2px solid #0a0e27;
}

.cr-pod-rank-badge--gold { background: linear-gradient(135deg, #FFD700, #FFA500); color: #1a1a1a; width: 30px; height: 30px; font-size: 15px; }
.cr-pod-rank-badge--silver { background: linear-gradient(135deg, #C0C0C0, #888); }
.cr-pod-rank-badge--bronze { background: linear-gradient(135deg, #CD7F32, #8B4513); }

.cr-pod-name {
    font-size: 15px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    word-break: keep-all;
}

.cr-pod-name--gold {
    font-size: 18px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cr-pod-realname {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    margin-bottom: 4px;
}

.cr-pod-dist {
    font-size: 17px;
    font-weight: 800;
    color: rgba(255,255,255,0.9);
    font-feature-settings: "tnum";
}

.cr-pod-dist--gold {
    font-size: 22px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #fff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: cr-shimmer 5s linear infinite;
}

@keyframes cr-shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.cr-pod-dist small { font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.4); }
.cr-pod-dist--gold small { color: rgba(255,215,0,0.6); }

.cr-pod-runs {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    margin-top: 2px;
}

/* --- 시상대 스탠드 (1등이 가장 높음) --- */
.cr-stand {
    width: 100%;
    border-radius: 14px 14px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 14px;
    transform-origin: bottom center;
    transform: scaleY(0) translateZ(0);
    animation: cr-standRise 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    will-change: transform;
}

.cr-stand span {
    font-size: 48px;
    font-weight: 900;
    color: rgba(255,255,255,0.12);
    user-select: none;
}

.cr-stand--gold {
    height: 150px;
    background: linear-gradient(180deg, #FFD700 0%, #CC8800 50%, #996600 100%);
    animation-delay: 0.7s;
}

.cr-stand--gold span { font-size: 64px; color: rgba(255,255,255,0.18); }

.cr-stand--silver {
    height: 110px;
    background: linear-gradient(180deg, #E0E0E0 0%, #A0A0A0 50%, #787878 100%);
    animation-delay: 0.4s;
}

.cr-stand--bronze {
    height: 80px;
    background: linear-gradient(180deg, #E8A87C 0%, #CD7F32 50%, #8B5A2B 100%);
    animation-delay: 0.2s;
}

/* Stand shine */
.cr-stand::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: cr-standShine 6s ease-in-out infinite 2s;
    will-change: transform;
    transform: translateX(-200%) translateZ(0);
}

@keyframes cr-standRise {
    from { transform: scaleY(0) translateZ(0); }
    to { transform: scaleY(1) translateZ(0); }
}

@keyframes cr-standShine {
    0%, 100% { transform: translateX(-200%) translateZ(0); }
    50% { transform: translateX(400%) translateZ(0); }
}

/* --- 관중석: 경기장 관람석 느낌 --- */
.cr-audience {
    margin-top: 0;
    opacity: 0;
    transform: translateY(30px) translateZ(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.cr-audience--show {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

/* 관중석-시상대 사이 경계: 트랙/잔디 느낌 */
.cr-audience-ground {
    height: 24px;
    position: relative;
    margin: 0 -20px;
    overflow: hidden;
}

.cr-audience-ground-track {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(139,90,43,0.15) 0%, rgba(139,90,43,0.05) 60%, transparent 100%);
    border-top: 2px solid rgba(139,90,43,0.15);
}

/* 관중석 헤더 */
.cr-audience-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 16px 0 12px;
}

.cr-audience-label {
    font-size: 11px;
    font-weight: 800;
    color: rgba(255,255,255,0.3);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.cr-audience-count {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
}

/* 관중석 계단식 좌석 */
.cr-audience-stands {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 720px;
    margin: 0 auto;
    perspective: 600px;
}

/* 각 줄은 점점 뒤로 (위로) 갈수록 작아지고 어두워짐 = 원근감 */
.cr-audience-row {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 6px 0;
    border-bottom: 2px solid rgba(255,255,255,0.03);
    background: linear-gradient(180deg,
        rgba(255,255,255, calc(0.03 - var(--row) * 0.005)) 0%,
        rgba(255,255,255, calc(0.015 - var(--row) * 0.003)) 100%
    );
    transform: translateZ(0);
}

/* 좌석 하나 */
.cr-aud-seat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px 6px 6px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease;
    position: relative;
    min-width: 0;
}

.cr-aud-seat:hover {
    background: rgba(255,255,255,0.06);
}

/* 리액션 이모지 (hover 시) */
.cr-aud-seat-reaction {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%) translateZ(0);
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    pointer-events: none;
    z-index: 2;
}

.cr-aud-seat:hover .cr-aud-seat-reaction {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px) translateZ(0);
}

.cr-aud-seat-avatar {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
}

.cr-aud-seat-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.cr-aud-seat-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cr-aud-seat-dist {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.35);
    font-feature-settings: "tnum";
}

/* =====================================================
   5. RANKING LIST - 전체 랭킹 테이블
   ===================================================== */
.cr-list-section { margin-top: 50px; }

.cr-list-title {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cr-list-title svg { color: rgba(255,255,255,0.5); }

.cr-list {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    overflow: hidden;
}

.cr-list-hdr {
    display: grid;
    grid-template-columns: 55px 1fr 80px 90px 90px;
    padding: 14px 20px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cr-row {
    display: grid;
    grid-template-columns: 55px 1fr 80px 90px 90px;
    padding: 14px 20px;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: background 0.15s ease;
    opacity: 0;
    animation: cr-rowSlide 0.4s ease-out forwards;
    will-change: transform, opacity;
    transform: translateZ(0);
    contain: layout style;
    cursor: pointer;
}

.cr-row:last-child { border-bottom: none; }
.cr-row:hover { background: rgba(255,255,255,0.05); }

.cr-row--gold { background: rgba(255,215,0,0.06); }
.cr-row--silver { background: rgba(192,192,192,0.04); }
.cr-row--bronze { background: rgba(205,127,50,0.04); }

@keyframes cr-rowSlide {
    from { opacity: 0; transform: translateX(-16px) translateZ(0); }
    to { opacity: 1; transform: translateX(0) translateZ(0); }
}

.cr-row-rank { text-align: center; }
.cr-row-rank-num { font-size: 15px; font-weight: 700; color: rgba(255,255,255,0.45); font-feature-settings: "tnum"; }

.cr-row-user { display: flex; align-items: center; gap: 12px; min-width: 0; }

.cr-row-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.cr-row--gold .cr-row-avatar { border: 2px solid rgba(255,215,0,0.4); }

.cr-row-names { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cr-row-nick { font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-row-real { font-size: 12px; color: rgba(255,255,255,0.3); }

.cr-row-runs, .cr-row-pace { font-size: 13px; color: rgba(255,255,255,0.5); text-align: center; }

.cr-row-dist {
    text-align: right;
    font-weight: 700;
    color: #fff;
    font-size: 15px;
    font-feature-settings: "tnum";
}

.cr-row-dist small { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.4); margin-left: 2px; }

.cr-row--gold .cr-row-nick { color: #FFD700; }
.cr-row--gold .cr-row-dist { color: #FFD700; }

/* --- CTA: 동기부여 섹션 --- */
.cr-cta {
    text-align: center;
    margin-top: 60px;
    padding: 48px 24px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    animation: cr-fadeInUp 0.8s ease-out both;
    animation-delay: 1s;
}

.cr-cta-emoji { font-size: 44px; margin-bottom: 14px; }
.cr-cta-title { font-size: 22px; font-weight: 800; color: #fff; margin: 0 0 12px; }
.cr-cta-text { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.6; margin: 0 0 24px; }

.cr-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #4e8fff, #6366f1);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border-radius: 999px;
    text-decoration: none;
    transition: transform 0.2s ease;
    box-shadow: 0 4px 20px rgba(78,143,255,0.3);
}

.cr-cta-btn:hover { transform: translateY(-2px) translateZ(0); }

/* =====================================================
   6. CERTIFICATE MODAL - 상장 모달
   금/은/동 상장 + 참가상, html2canvas로 이미지 저장 가능
   ===================================================== */
.cr-cert-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0,0,0,0.92);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cr-cert-overlay--show { opacity: 1; visibility: visible; }

/* Top bar */
.cr-cert-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(20,20,30,0.95);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-shrink: 0;
    z-index: 2;
}

.cr-cert-topbar-title { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.6); }

.cr-cert-topbar-close {
    display: flex; align-items: center; gap: 6px;
    padding: 8px 16px; border-radius: 999px;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12);
    color: #fff; font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.2s;
}
.cr-cert-topbar-close:hover { background: rgba(255,255,255,0.18); }
.cr-cert-topbar-close svg { flex-shrink: 0; }

/* Scroll area */
.cr-cert-scroll {
    flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
    display: flex; align-items: flex-start; justify-content: center;
    padding: 20px 14px 40px;
}

.cr-cert-modal {
    max-width: 480px; width: 100%;
    display: flex; flex-direction: column; align-items: center; gap: 20px;
}

/* ===== Card ===== */
.cr-cert-card { width: 100%; border-radius: 6px; overflow: hidden; }

.cr-cert-border { padding: 6px; border-radius: 6px; }

.cr-cert-card--gold .cr-cert-border {
    background: conic-gradient(from 0deg, #FFD700, #B8860B, #FFD700, #FFC700, #DAA520, #FFD700);
}
.cr-cert-card--silver .cr-cert-border {
    background: conic-gradient(from 0deg, #D0D0D0, #888, #E0E0E0, #A8A8A8, #C8C8C8, #D0D0D0);
}
.cr-cert-card--bronze .cr-cert-border {
    background: conic-gradient(from 0deg, #CD7F32, #8B4513, #DEB887, #A0522D, #CD7F32, #E8A87C);
}
.cr-cert-card--participation .cr-cert-border {
    background: conic-gradient(from 0deg, #4e8fff, #6366f1, #38bdf8, #818cf8, #4e8fff, #60a5fa);
}

.cr-cert-inner {
    background: linear-gradient(170deg, #fffef6 0%, #faf5e4 40%, #f3ecda 100%);
    border-radius: 2px;
    padding: 36px 30px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Double frame border */
.cr-cert-frame {
    position: absolute;
    inset: 10px;
    border: 1.5px solid #c5a955;
    pointer-events: none;
}

.cr-cert-frame--inner {
    inset: 14px;
    border: 1px solid rgba(197,169,85,0.3);
    border-style: dashed;
}

/* Background watermark pattern */
.cr-cert-inner::before {
    content: '🏃';
    position: absolute;
    font-size: 180px;
    opacity: 0.025;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Document number */
.cr-cert-docno {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 9px;
    font-weight: 700;
    color: #b5a06a;
    letter-spacing: 1px;
    font-feature-settings: "tnum";
    font-family: 'Courier New', monospace;
    opacity: 0.7;
}

/* Organization row */
.cr-cert-org-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 20px;
    position: relative;
}

.cr-cert-org-line {
    display: block;
    width: 50px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c5a955, transparent);
}

.cr-cert-org-name {
    font-size: 13px;
    font-weight: 900;
    color: #4e8fff;
    letter-spacing: 5px;
    text-transform: uppercase;
}

/* Emblem */
.cr-cert-emblem {
    font-size: 52px;
    margin-bottom: 8px;
    line-height: 1;
    position: relative;
}

/* Type */
.cr-cert-type {
    font-size: clamp(22px, 5vw, 28px);
    font-weight: 900;
    color: #1a1206;
    letter-spacing: 10px;
    margin: 0 0 4px;
    position: relative;
}

.cr-cert-type-en {
    font-size: 9px;
    font-weight: 700;
    color: #b5a06a;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* Challenge */
.cr-cert-challenge {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #6a5a38;
    padding: 5px 16px;
    border: 1px solid rgba(197,169,85,0.25);
    border-radius: 999px;
    background: rgba(197,169,85,0.06);
    margin-bottom: 4px;
    position: relative;
}

/* Divider */
.cr-cert-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 14px 0;
    position: relative;
}

.cr-cert-divider::before, .cr-cert-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #c5a955);
}

.cr-cert-divider::after {
    background: linear-gradient(90deg, #c5a955, transparent);
}

.cr-cert-divider span {
    padding: 0 10px;
    font-size: 10px;
    color: #c5a955;
}

/* "수여 대상" label */
.cr-cert-to-label {
    font-size: 11px;
    color: #a09070;
    letter-spacing: 1px;
    margin-bottom: 14px;
    position: relative;
}

/* Recipient */
.cr-cert-recipient-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 14px;
    position: relative;
}

.cr-cert-avatar {
    width: 72px; height: 72px; min-width: 72px;
    border-radius: 50%; object-fit: cover;
    border: 3px solid #c5a955;
    box-shadow: 0 3px 16px rgba(160,140,80,0.25);
}

.cr-cert-name-group { text-align: left; }

.cr-cert-recipient {
    font-size: clamp(24px, 5vw, 30px);
    font-weight: 900;
    color: #1a1206;
    line-height: 1.2;
}

.cr-cert-realname {
    font-size: 13px;
    color: #a09070;
    margin-top: 2px;
}

/* Body text */
.cr-cert-body {
    font-size: 13px;
    color: #5a4a2e;
    line-height: 1.9;
    margin-bottom: 14px;
    position: relative;
}

/* Performance stats */
.cr-cert-perf {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: linear-gradient(135deg, rgba(197,169,85,0.08), rgba(197,169,85,0.04));
    border: 1px solid rgba(197,169,85,0.15);
    border-radius: 12px;
    padding: 16px 12px;
    margin-bottom: 10px;
    position: relative;
}

.cr-cert-perf-item {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
}

.cr-cert-perf-val {
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 900;
    color: #1a1206;
    font-feature-settings: "tnum";
    line-height: 1.2;
}

.cr-cert-perf-unit {
    font-size: 12px;
    font-weight: 600;
    color: #a09070;
}

.cr-cert-perf-label {
    font-size: 10px;
    color: #b0a080;
    margin-top: 2px;
}

.cr-cert-perf-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #c5a955;
    opacity: 0.4;
    flex-shrink: 0;
}

/* Bottom: date + seal + issuer */
.cr-cert-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    position: relative;
}

.cr-cert-bottom-col {
    flex: 1;
    text-align: center;
}

.cr-cert-bottom-col--right { text-align: center; }

.cr-cert-bottom-label {
    font-size: 9px;
    color: #b5a06a;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.cr-cert-bottom-val {
    font-size: 11px;
    color: #6a5a38;
    font-weight: 600;
}

.cr-cert-issuer { font-weight: 700; }

/* Seal */
.cr-cert-seal-wrap { text-align: center; flex-shrink: 0; }

.cr-cert-seal-ring {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #c5a955;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 4px;
    background: rgba(197,169,85,0.06);
}

.cr-cert-seal-emoji { font-size: 30px; }

.cr-cert-seal-text {
    font-size: 7px;
    font-weight: 800;
    color: #c5a955;
    letter-spacing: 3px;
}

/* Gold cert specific */
.cr-cert-card--gold .cr-cert-recipient { color: #8B6914; }
.cr-cert-card--gold .cr-cert-perf { border-color: rgba(255,215,0,0.25); background: linear-gradient(135deg, rgba(255,215,0,0.08), rgba(255,215,0,0.03)); }
.cr-cert-card--gold .cr-cert-seal-ring { border-color: #DAA520; }

/* Silver cert specific */
.cr-cert-card--silver .cr-cert-seal-ring { border-color: #A0A0A0; }
.cr-cert-card--silver .cr-cert-frame { border-color: #B0B0B0; }
.cr-cert-card--silver .cr-cert-frame--inner { border-color: rgba(176,176,176,0.3); }

/* Bronze cert specific */
.cr-cert-card--bronze .cr-cert-seal-ring { border-color: #CD7F32; }
.cr-cert-card--bronze .cr-cert-frame { border-color: #B8733A; }
.cr-cert-card--bronze .cr-cert-frame--inner { border-color: rgba(184,115,58,0.3); }

/* Participation cert specific */
.cr-cert-card--participation .cr-cert-inner {
    background: linear-gradient(170deg, #f8faff 0%, #eef2ff 40%, #e8ecff 100%);
}
.cr-cert-card--participation .cr-cert-frame { border-color: rgba(78,143,255,0.3); }
.cr-cert-card--participation .cr-cert-frame--inner { border-color: rgba(78,143,255,0.15); border-style: dashed; }
.cr-cert-card--participation .cr-cert-org-line { background: linear-gradient(90deg, transparent, rgba(78,143,255,0.4), transparent); }
.cr-cert-card--participation .cr-cert-divider::before { background: linear-gradient(90deg, transparent, rgba(78,143,255,0.3)); }
.cr-cert-card--participation .cr-cert-divider::after { background: linear-gradient(90deg, rgba(78,143,255,0.3), transparent); }
.cr-cert-card--participation .cr-cert-divider span { color: #4e8fff; }
.cr-cert-card--participation .cr-cert-challenge { border-color: rgba(78,143,255,0.2); background: rgba(78,143,255,0.06); color: #3b6fc7; }
.cr-cert-card--participation .cr-cert-avatar { border-color: #4e8fff; }
.cr-cert-card--participation .cr-cert-perf { border-color: rgba(78,143,255,0.15); background: linear-gradient(135deg, rgba(78,143,255,0.06), rgba(99,102,241,0.03)); }
.cr-cert-card--participation .cr-cert-seal-ring { border-color: #4e8fff; }
.cr-cert-card--participation .cr-cert-seal-text { color: #4e8fff; }
.cr-cert-card--participation .cr-cert-inner::before { content: '🎖️'; }

/* Download button */
.cr-cert-download {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #4e8fff, #6366f1);
    color: #fff; font-size: 15px; font-weight: 700;
    border: none; border-radius: 999px; cursor: pointer;
    transition: transform 0.2s;
    box-shadow: 0 4px 16px rgba(78,143,255,0.3);
}

.cr-cert-download:hover { transform: translateY(-2px) translateZ(0); }

/* ================================================
   RESPONSIVE
   ================================================ */
@media (max-width: 768px) {
    .cr-hide-mobile { display: none; }
    .cr-list-hdr, .cr-row { grid-template-columns: 45px 1fr 90px; }

    .cr-pod-avatar-ring { width: 58px; height: 58px; }
    .cr-pod-avatar-ring--gold { width: 74px; height: 74px; }
    .cr-pod-name { font-size: 13px; }
    .cr-pod-name--gold { font-size: 16px; }
    .cr-pod-dist { font-size: 15px; }
    .cr-pod-dist--gold { font-size: 18px; }

    .cr-stand--gold { height: 120px; }
    .cr-stand--silver { height: 90px; }
    .cr-stand--bronze { height: 65px; }
    .cr-stand span { font-size: 36px; }
    .cr-stand--gold span { font-size: 48px; }

    .cr-beam { animation-duration: 16s; }
    .cr-pod-crown { animation: none; }
    .cr-pod-avatar-ring--gold { animation: none; box-shadow: 0 0 16px rgba(255,215,0,0.25); }
    .cr-stand::before { animation: none; opacity: 0; }
    .cr-pod-medal-worn { animation: none; }
    .cr-pod-spotlight { animation: none; opacity: 0.7; }
    .cr-row { animation-duration: 0.25s; }

    /* 관중석 태블릿 */
    .cr-aud-seat-avatar { width: 32px; height: 32px; min-width: 32px; }
    .cr-aud-seat-name { font-size: 12px; }
    .cr-aud-seat-dist { font-size: 10px; }
}

@media (max-width: 480px) {
    .cr-hero { padding: 30px 0 20px; }
    .cr-title { font-size: 22px; }
    .cr-desc { font-size: 13px; }
    .cr-meta { flex-direction: column; align-items: center; }
    .cr-meta-pill { width: 100%; max-width: 260px; justify-content: center; }

    .cr-podium { padding: 0 4px; }
    .cr-pod-avatar-ring { width: 48px; height: 48px; }
    .cr-pod-avatar-ring--gold { width: 62px; height: 62px; animation: none; }
    .cr-pod-crown { font-size: 24px; }
    .cr-pod-medal-worn { font-size: 22px; margin-top: -10px; animation: none; }
    .cr-pod-medal-worn--gold { font-size: 26px; margin-top: -12px; }
    .cr-pod-spotlight { display: none; }
    .cr-pod-wit { font-size: 10px; padding: 2px 8px; }
    .cr-motivate { padding: 16px 14px; margin-top: 16px; }
    .cr-motivate-icon { font-size: 20px; margin-bottom: 4px; }
    .cr-motivate-text { font-size: 13px; }
    .cr-motivate-tip { font-size: 11px; }
    .cr-stage-sub { display: none; }
    .cr-pod-medal { font-size: 18px; }
    .cr-pod-name { font-size: 11px; }
    .cr-pod-name--gold { font-size: 14px; }
    .cr-pod-dist { font-size: 13px; }
    .cr-pod-dist--gold { font-size: 16px; animation: none; }
    .cr-pod-realname { font-size: 10px; }
    .cr-pod-runs { font-size: 10px; }

    .cr-stand--gold { height: 100px; }
    .cr-stand--silver { height: 75px; }
    .cr-stand--bronze { height: 55px; }
    .cr-stand span { font-size: 28px; }
    .cr-stand--gold span { font-size: 38px; }
    .cr-stand::before { display: none; }

    .cr-pod-rank-badge { width: 22px; height: 22px; font-size: 11px; }
    .cr-pod-rank-badge--gold { width: 26px; height: 26px; font-size: 13px; }

    .cr-beam { display: none; }
    .cr-bg-star { animation: none; opacity: 0.3; }

    .cr-list-hdr, .cr-row { grid-template-columns: 40px 1fr 76px; padding: 12px 14px; }
    .cr-row-avatar { width: 32px; height: 32px; }
    .cr-row-nick { font-size: 13px; }
    .cr-row-dist { font-size: 14px; }

    /* 관중석 모바일 */
    .cr-audience-row { gap: 4px; }
    .cr-aud-seat { padding: 5px 6px 5px 5px; gap: 6px; }
    .cr-aud-seat-avatar { width: 28px; height: 28px; min-width: 28px; }
    .cr-aud-seat-name { font-size: 11px; }
    .cr-aud-seat-dist { font-size: 9px; }
    .cr-aud-seat-reaction { font-size: 14px; }
    .cr-audience-ground { height: 16px; }

    .cr-cta { padding: 32px 16px; margin-top: 40px; }
    .cr-cta-emoji { font-size: 32px; }
    .cr-cta-title { font-size: 18px; }
    .cr-cta-text { font-size: 13px; }

    /* Certificate mobile */
    .cr-cert-scroll { padding: 12px 10px 32px; }
    .cr-cert-inner { padding: 28px 18px 22px; }
    .cr-cert-emblem { font-size: 40px; }
    .cr-cert-type { letter-spacing: 6px; }
    .cr-cert-type-en { font-size: 8px; }
    .cr-cert-recipient-wrap { flex-direction: column; gap: 8px; }
    .cr-cert-name-group { text-align: center; }
    .cr-cert-avatar { width: 60px; height: 60px; min-width: 60px; }
    .cr-cert-perf-val { font-size: 18px; }
    .cr-cert-seal-ring { width: 48px; height: 48px; }
    .cr-cert-seal-emoji { font-size: 24px; }
    .cr-cert-bottom { flex-direction: column; gap: 12px; align-items: center; }
    .cr-cert-frame { inset: 8px; }
    .cr-cert-frame--inner { inset: 12px; }
    .cr-cert-org-line { width: 30px; }

    /* Intro mobile */
    .cr-intro-runner-avatar { width: 36px; height: 36px; }
    .cr-intro-runner-info { width: 110px; gap: 6px; }
    .cr-intro-runner-name { font-size: 13px; }
    .cr-intro-runner-dist { font-size: 11px; }
    .cr-intro-runner-bar { height: 28px; }
    .cr-intro-runner-medal { font-size: 22px; width: 32px; }
    .cr-intro-winner-avatar { width: 90px; height: 90px; }
    .cr-intro-winner-crown { font-size: 40px; }
    .cr-intro-winner-dist { font-size: 16px; }
    .cr-intro-glow, .cr-intro-winner-glow { width: 250px; height: 250px; }
    .cr-intro-skip-global { top: 12px; right: 12px; font-size: 12px; padding: 6px 14px; }
}

@media (max-width: 360px) {
    .cr-podium { padding: 0 2px; }
    .cr-pod-avatar-ring { width: 42px; height: 42px; }
    .cr-pod-avatar-ring--gold { width: 54px; height: 54px; }
    .cr-pod-name { font-size: 10px; }
    .cr-pod-dist { font-size: 12px; }
    .cr-stand--gold { height: 85px; }
    .cr-stand--silver { height: 60px; }
    .cr-stand--bronze { height: 45px; }
    .cr-aud-seat-avatar { width: 24px; height: 24px; min-width: 24px; }
    .cr-aud-seat-name { font-size: 10px; }
}

/* ================================================
   prefers-reduced-motion
   ================================================ */
@media (prefers-reduced-motion: reduce) {
    .cr-intro { display: none !important; }
    .cr-page { opacity: 1 !important; transition: none !important; }
    .cr-bg-star, .cr-beam, .cr-pod-crown, .cr-pod-avatar-ring--gold,
    .cr-stand::before, .cr-confetti-piece, .cr-badge-dot,
    .cr-pod-medal-worn, .cr-pod-spotlight { animation: none !important; }
    .cr-pod, .cr-row, .cr-cta, .cr-hero { animation: none !important; opacity: 1 !important; transform: none !important; }
    .cr-pod--hidden { opacity: 1 !important; transform: none !important; pointer-events: auto !important; }
    .cr-stand { animation: none !important; transform: scaleY(1) !important; }
    .cr-audience { opacity: 1 !important; transform: none !important; }
}

/* ================================================
   Light theme - 라이트모드 완벽 지원
   ================================================ */

/* --- 페이지 배경 --- */
[data-theme="light"] .cr-page { background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 30%, #f5f7ff 60%, #f0f4ff 100%); }
[data-theme="light"] .cr-bg-star { background: #4e8fff; opacity: 0.08; }
[data-theme="light"] .cr-beam { background: linear-gradient(180deg, rgba(78,143,255,0.04) 0%, transparent 100%); }

/* --- 히어로 영역 --- */
[data-theme="light"] .cr-title { color: #1a1a2e; }
[data-theme="light"] .cr-desc { color: #6a6f7d; }
[data-theme="light"] .cr-badge--active { background: rgba(52,199,89,0.1); color: #28a745; border-color: rgba(52,199,89,0.2); }
[data-theme="light"] .cr-badge--active .cr-badge-dot { background: #28a745; }
[data-theme="light"] .cr-badge--ended { background: rgba(220,53,69,0.08); color: #dc3545; border-color: rgba(220,53,69,0.15); }
[data-theme="light"] .cr-badge--upcoming { background: rgba(78,143,255,0.08); color: #3b6fc7; border-color: rgba(78,143,255,0.15); }
[data-theme="light"] .cr-meta-pill { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.08); color: #444; }
[data-theme="light"] .cr-meta-pill svg { color: #888; }
[data-theme="light"] .cr-meta-pill--accent { background: rgba(255,165,0,0.08); border-color: rgba(255,165,0,0.2); color: #cc7700; }

/* --- 시상대 섹션 --- */
[data-theme="light"] .cr-stage-label { color: #888; }
[data-theme="light"] .cr-pod-name { color: #1a1a2e; }
[data-theme="light"] .cr-pod-name--gold { background: linear-gradient(135deg, #B8860B, #996600); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="light"] .cr-pod-realname { color: #999; }
[data-theme="light"] .cr-pod-dist { color: #1a1a2e; }
[data-theme="light"] .cr-pod-dist--gold { background: linear-gradient(135deg, #B8860B, #996600, #CC8800); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="light"] .cr-pod-runs { color: #999; }
[data-theme="light"] .cr-pod-avatar { background: #f0f4ff; }
[data-theme="light"] .cr-pod-rank-badge { border-color: #f0f4ff; }
[data-theme="light"] .cr-pod-avatar-ring--gold { box-shadow: 0 0 16px rgba(184,134,11,0.2), 0 0 32px rgba(184,134,11,0.08); }
[data-theme="light"] .cr-pod-medal-worn { filter: none; }
[data-theme="light"] .cr-pod-spotlight { background: radial-gradient(circle, rgba(255,215,0,0.06) 0%, transparent 70%); }

/* --- 시상대 스탠드 --- */
[data-theme="light"] .cr-stand--gold { background: linear-gradient(180deg, #FFD700 0%, #DAA520 50%, #B8860B 100%); }
[data-theme="light"] .cr-stand--silver { background: linear-gradient(180deg, #E8E8E8 0%, #C0C0C0 50%, #A0A0A0 100%); }
[data-theme="light"] .cr-stand--bronze { background: linear-gradient(180deg, #DEB887 0%, #CD7F32 50%, #A0522D 100%); }
[data-theme="light"] .cr-stand span { color: rgba(255,255,255,0.2); }

/* --- 위트 말풍선 --- */
[data-theme="light"] .cr-pod-wit { background: rgba(0,0,0,0.04); color: #888; }
[data-theme="light"] .cr-pod-wit--gold { background: rgba(184,134,11,0.08); color: #B8860B; }
[data-theme="light"] .cr-stage-sub { color: rgba(0,0,0,0.3); }

/* --- 동기부여 배너 --- */
[data-theme="light"] .cr-motivate { background: rgba(255,165,0,0.04); border-color: rgba(0,0,0,0.06); }
[data-theme="light"] .cr-motivate-text { color: #555; }
[data-theme="light"] .cr-motivate-text strong { color: #B8860B; }
[data-theme="light"] .cr-motivate-tip { color: #999; }
[data-theme="light"] .cr-motivate-tip strong { color: #3b6fc7; }

/* --- 관중석 (4등 이하) --- */
/* --- 관중석 라이트모드 --- */
[data-theme="light"] .cr-audience-label { color: #999; }
[data-theme="light"] .cr-audience-count { color: #888; }
[data-theme="light"] .cr-audience-ground-track { background: linear-gradient(180deg, rgba(139,90,43,0.08) 0%, transparent 100%); border-top-color: rgba(139,90,43,0.1); }
[data-theme="light"] .cr-audience-row { background: rgba(0,0,0,0.02); border-bottom-color: rgba(0,0,0,0.04); }
[data-theme="light"] .cr-aud-seat:hover { background: rgba(0,0,0,0.04); }
[data-theme="light"] .cr-aud-seat-avatar { border-color: rgba(0,0,0,0.08); background: #f0f4ff; }
[data-theme="light"] .cr-aud-seat-name { color: #333; }
[data-theme="light"] .cr-aud-seat-dist { color: #888; }

/* --- 전체 랭킹 리스트 --- */
[data-theme="light"] .cr-list-title { color: #1a1a2e; }
[data-theme="light"] .cr-list-title svg { color: #888; }
[data-theme="light"] .cr-list { background: rgba(255,255,255,0.85); border-color: rgba(0,0,0,0.08); }
[data-theme="light"] .cr-list-hdr { color: #999; border-bottom-color: rgba(0,0,0,0.06); }
[data-theme="light"] .cr-row { border-bottom-color: rgba(0,0,0,0.04); }
[data-theme="light"] .cr-row:hover { background: rgba(0,0,0,0.02); }
[data-theme="light"] .cr-row--gold { background: rgba(255,215,0,0.06); }
[data-theme="light"] .cr-row--silver { background: rgba(192,192,192,0.06); }
[data-theme="light"] .cr-row--bronze { background: rgba(205,127,50,0.05); }
[data-theme="light"] .cr-row-rank-num { color: #999; }
[data-theme="light"] .cr-row-nick { color: #1a1a2e; }
[data-theme="light"] .cr-row--gold .cr-row-nick { color: #B8860B; }
[data-theme="light"] .cr-row--gold .cr-row-dist { color: #B8860B; }
[data-theme="light"] .cr-row-real { color: #999; }
[data-theme="light"] .cr-row-runs, [data-theme="light"] .cr-row-pace { color: #666; }
[data-theme="light"] .cr-row-dist { color: #1a1a2e; }
[data-theme="light"] .cr-row-dist small { color: #999; }
[data-theme="light"] .cr-row-avatar { background: #f0f4ff; }
[data-theme="light"] .cr-row--gold .cr-row-avatar { border-color: rgba(184,134,11,0.3); }

/* --- CTA 섹션 --- */
[data-theme="light"] .cr-cta { background: rgba(0,0,0,0.02); border-color: rgba(0,0,0,0.06); }
[data-theme="light"] .cr-cta-title { color: #1a1a2e; }
[data-theme="light"] .cr-cta-text { color: #6a6f7d; }

/* --- 상장 모달 --- */
[data-theme="light"] .cr-cert-topbar { background: rgba(240,240,245,0.98); border-bottom-color: rgba(0,0,0,0.08); }
[data-theme="light"] .cr-cert-topbar-title { color: #333; }
[data-theme="light"] .cr-cert-topbar-close { background: rgba(0,0,0,0.06); border-color: rgba(0,0,0,0.1); color: #333; }
[data-theme="light"] .cr-cert-topbar-close:hover { background: rgba(0,0,0,0.1); }
[data-theme="light"] .cr-cert-overlay { background: rgba(0,0,0,0.6); }
