/* 대회 전용 스타일 */

/* Financial Title Style - 금융스러운 제목 스타일 */
.hero-section .financial-title {
    font-family: 'Noto Sans KR', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #e8f4f8 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
    position: relative;
    display: inline-block;
}

.hero-section .financial-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    right: -10px;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.1) 0%, rgba(255, 215, 0, 0.1) 100%);
    border-radius: 8px;
    z-index: -1;
    filter: blur(20px);
}

/* 영어 버전 스타일 */
html[lang="en"] .hero-section .financial-title {
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* Rules Section Styles - Modern Financial Design */
.contest-rules-section {
    margin-top: 2rem;
}

.rules-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #ffffff;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rules-title i {
    font-size: 1.125rem;
    opacity: 0.9;
}

.rules-preview {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rules-show-more-btn {
    margin-top: 1rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(30, 64, 175, 0.1) 100%);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.75rem;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
}

.rules-show-more-btn:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(30, 64, 175, 0.15) 100%);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.rules-show-more-btn:active {
    transform: translateY(0);
}

.rules-show-more-btn i {
    transition: transform 0.3s ease;
}

.rule-preview-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.03) 100%);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.rule-preview-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, #3b82f6 0%, #1e40af 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rule-preview-item:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateX(6px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.rule-preview-item:hover::before {
    opacity: 1;
}

.rule-icon-wrapper {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(30, 64, 175, 0.1) 100%);
    border-radius: 0.75rem;
    flex-shrink: 0;
    border: 1px solid rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
}

.rule-preview-item:hover .rule-icon-wrapper {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(30, 64, 175, 0.15) 100%);
    border-color: rgba(59, 130, 246, 0.35);
    transform: scale(1.05);
}

.rule-icon {
    font-size: 1.375rem;
    color: #60a5fa;
    transition: all 0.3s ease;
}

.rule-preview-item:hover .rule-icon {
    color: #3b82f6;
    transform: scale(1.1);
}

.rule-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.rule-text {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
}

.rule-subtitle {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.rule-arrow {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.rule-preview-item:hover .rule-arrow {
    color: rgba(255, 255, 255, 0.9);
    transform: translateX(4px);
}

/* Rules Modal Styles - Premium Financial Design */
#ruleDetailModal .modal-dialog {
    max-width: 600px;
}

#ruleDetailModal .rule-modal-content {
    background: #ffffff;
    border: none;
    border-radius: 1.5rem;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
}

#ruleDetailModal .rule-modal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    z-index: 1;
}

#ruleDetailModal .rule-modal-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    border: none;
    padding: 2rem 2.5rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#ruleDetailModal .rule-modal-header::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.rule-modal-title-wrapper {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    position: relative;
    z-index: 1;
}

.rule-modal-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.rule-modal-icon i {
    font-size: 1.75rem;
    color: #ffffff;
}

#ruleDetailModal .modal-title {
    font-size: 1.625rem;
    font-weight: 700;
    margin: 0;
    color: #ffffff;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#joinNotAvailableModal .modal-title {
    font-size: 1.625rem;
    font-weight: 700;
    margin: 0;
    color: #1e293b !important;
    letter-spacing: -0.025em;
}

#joinNotAvailableModal .rule-modal-header {
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

#ruleDetailModal .btn-close-white {
    filter: none !important;
    opacity: 0.9 !important;
    transition: all 0.2s ease;
    position: relative;
    z-index: 10 !important;
    width: 2.5rem !important;
    height: 2.5rem !important;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.15) !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
    margin: 0 !important;
    background-image: none !important;
}

#ruleDetailModal .btn-close-white::before {
    content: '×';
    font-size: 1.75rem;
    line-height: 1;
    color: #ffffff !important;
    font-weight: 300;
    display: block;
}

#ruleDetailModal .btn-close-white::after {
    display: none !important;
}

#ruleDetailModal .btn-close-white:hover {
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.25) !important;
    transform: rotate(90deg);
    border-color: rgba(255, 255, 255, 0.3) !important;
}

#ruleDetailModal .btn-close-white:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25) !important;
    outline: none;
}

#ruleDetailModal .rule-modal-body {
    padding: 2.5rem;
    max-height: 70vh;
    overflow-y: auto;
    background: #ffffff;
}

#ruleDetailModal .rule-modal-body::-webkit-scrollbar {
    width: 6px;
}

#ruleDetailModal .rule-modal-body::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 3px;
}

#ruleDetailModal .rule-modal-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
    border-radius: 3px;
}

#ruleDetailModal .rule-modal-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
}

#ruleDetailModal .rule-modal-footer {
    border-top: 1px solid #e2e8f0;
    padding: 1.75rem 2.5rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    display: flex;
    justify-content: flex-end;
}

.rule-modal-close-btn {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    color: #ffffff;
    border: none;
    padding: 0.875rem 2.25rem;
    border-radius: 0.625rem;
    font-weight: 600;
    font-size: 0.9375rem;
    letter-spacing: 0.025em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.25);
    position: relative;
    overflow: hidden;
}

.rule-modal-close-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.rule-modal-close-btn:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
}

.rule-modal-close-btn:hover::before {
    left: 100%;
}

.rule-modal-close-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3);
}

/* Rule Detail Content Styles - Premium Financial Design */
.rule-detail-content {
    color: #0f172a;
}

.rule-detail-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 2rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.rule-amount-display {
    text-align: center;
    padding: 2rem 2rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #bae6fd 100%);
    border-radius: 1.25rem;
    margin-bottom: 2rem;
    border: 2px solid #7dd3fc;
    box-shadow: 
        0 8px 24px rgba(14, 165, 233, 0.15),
        0 0 0 1px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.rule-amount-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9 0%, #3b82f6 50%, #2563eb 100%);
}

.rule-amount-display::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.rule-amount {
    display: block;
    font-size: 2.75rem;
    font-weight: 800;
    color: #0c4a6e;
    line-height: 1;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
    font-family: 'Inter', 'Noto Sans KR', -apple-system, sans-serif;
    position: relative;
    z-index: 1;
}

.rule-amount-label {
    display: block;
    font-size: 0.75rem;
    color: #075985;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.rule-duration-display {
    text-align: center;
    padding: 2rem 2rem;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fde68a 100%);
    border-radius: 1.25rem;
    margin-bottom: 2rem;
    border: 2px solid #fcd34d;
    box-shadow: 
        0 8px 24px rgba(217, 119, 6, 0.15),
        0 0 0 1px rgba(245, 158, 11, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    position: relative;
    overflow: hidden;
}

.rule-duration-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #f59e0b 0%, #fbbf24 50%, #fcd34d 100%);
}

.rule-duration-display::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.rule-duration-number {
    display: inline-block;
    font-size: 1.875rem;
    font-weight: 800;
    color: #92400e;
    line-height: 1.2;
    letter-spacing: -0.02em;
    font-family: 'Inter', 'Noto Sans KR', -apple-system, sans-serif;
    position: relative;
    z-index: 1;
}

.rule-duration-unit {
    display: inline-block;
    font-size: 1rem;
    color: #78350f;
    font-weight: 700;
    margin-left: 0.5rem;
    position: relative;
    z-index: 1;
}

.rule-highlight-box,
.rule-info-list,
.rule-warning-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.rule-highlight-item,
.rule-info-item,
.rule-warning-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.875rem 1.25rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.rule-highlight-item::before,
.rule-info-item::before,
.rule-warning-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    transition: width 0.3s ease;
}

.rule-highlight-item {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    color: #14532d;
    border: 1px solid #bbf7d0;
    box-shadow: 
        0 2px 8px rgba(34, 197, 94, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.rule-highlight-item::before {
    background: linear-gradient(180deg, #22c55e 0%, #16a34a 100%);
}

.rule-highlight-item:hover {
    transform: translateX(6px);
    box-shadow: 
        0 4px 16px rgba(34, 197, 94, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: #86efac;
}

.rule-highlight-item:hover::before {
    width: 6px;
}

.rule-highlight-item i {
    color: #16a34a;
    font-size: 1rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.rule-info-item {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
    box-shadow: 
        0 2px 8px rgba(59, 130, 246, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.rule-info-item::before {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
}

.rule-info-item:hover {
    transform: translateX(6px);
    box-shadow: 
        0 4px 16px rgba(59, 130, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: #93c5fd;
}

.rule-info-item:hover::before {
    width: 6px;
}

.rule-info-item i {
    color: #2563eb;
    font-size: 1rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.rule-warning-item {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    color: #7f1d1d;
    border: 1px solid #fecaca;
    box-shadow: 
        0 2px 8px rgba(239, 68, 68, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.rule-warning-item::before {
    background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
}

.rule-warning-item:hover {
    transform: translateX(6px);
    box-shadow: 
        0 4px 16px rgba(239, 68, 68, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border-color: #fca5a5;
}

.rule-warning-item:hover::before {
    width: 6px;
}

.rule-warning-item i {
    color: #dc2626;
    font-size: 1rem;
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.rule-timeline {
    margin-top: 2rem;
    position: relative;
    padding-left: 2rem;
}

.rule-timeline::before {
    content: '';
    position: absolute;
    left: 0.75rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #3b82f6 0%, #8b5cf6 50%, #a855f7 100%);
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

.rule-timeline-item {
    position: relative;
    padding-bottom: 2rem;
}

.rule-timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -1.625rem;
    top: 0.25rem;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border: 4px solid #ffffff;
    border-radius: 50%;
    box-shadow: 
        0 0 0 3px #3b82f6,
        0 2px 8px rgba(59, 130, 246, 0.4);
    z-index: 1;
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 0 2px 2px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-content:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    transform: translateX(6px);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: #cbd5e1;
}

.timeline-content:hover::before {
    opacity: 1;
}

.timeline-content strong {
    font-size: 1rem;
    color: #0f172a;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.timeline-content span {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.5;
}

.rule-process-box {
    margin-top: 2rem;
}

.rule-process-step {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 1.25rem;
    border: 2px solid #e2e8f0;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.rule-process-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.rule-process-step:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: #cbd5e1;
}

.rule-process-step:hover::before {
    opacity: 1;
}

.process-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    color: #ffffff;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.125rem;
    flex-shrink: 0;
    box-shadow: 
        0 6px 16px rgba(59, 130, 246, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    border: 3px solid rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 1;
}

.process-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.process-content strong {
    font-size: 1rem;
    color: #0f172a;
    font-weight: 700;
    letter-spacing: -0.015em;
}

.process-content span {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
    line-height: 1.5;
}

.rule-process-arrow {
    text-align: center;
    padding: 1rem 0;
    color: #94a3b8;
}

.rule-process-arrow i {
    font-size: 1.375rem;
    opacity: 0.5;
    animation: bounce 2s infinite;
    transition: opacity 0.3s ease;
}

.rule-process-arrow:hover i {
    opacity: 0.8;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(4px);
    }
}

.rule-note-box {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 0.875rem;
    border-left: 5px solid #64748b;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 0.875rem;
    color: #475569;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.rule-note-box:hover {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-color: #cbd5e1;
    transform: translateX(4px);
}

.rule-note-box i {
    color: #64748b;
    margin-top: 0.125rem;
    flex-shrink: 0;
    font-size: 1rem;
    opacity: 0.8;
}

/* Contest Stats Right Alignment */
.contest-stats-right {
    justify-content: flex-end !important;
    margin-left: auto;
    max-width: 900px;
    width: 100%;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-right: 2rem;
}

.contest-stats-right .stat-item {
    min-width: 120px;
    flex-shrink: 0;
    max-width: 180px;
}

/* Smaller stat numbers and labels */
.contest-stats-right .stat-number {
    font-size: 2.5rem !important;
    font-weight: 700;
}

.contest-stats-right .stat-label {
    font-size: 0.9rem !important;
    font-weight: 500;
}

/* Desktop specific adjustments */
@media (min-width: 1200px) {
    .contest-stats-right {
        max-width: 1000px;
        gap: 2rem;
    }
    
    .contest-stats-right .stat-item {
        min-width: 160px;
    }
}

/* Contest Portfolio Grid */
.contest-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contest-portfolio-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 2px solid #e9ecef;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.contest-portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ffd700, #ff6b6b, #4ecdc4);
}

.contest-portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    border-color: #ffd700;
}

.portfolio-icon {
    margin-bottom: 1.5rem;
}

.icon-emoji {
    font-size: 3rem;
    display: block;
}

.portfolio-content {
    text-align: center;
}

.portfolio-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.75rem;
    font-family: 'Noto Sans KR', sans-serif;
}

.portfolio-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    font-family: 'Lato', sans-serif;
}

.portfolio-value.profit {
    color: #28a745;
}

.portfolio-value.loss {
    color: #dc3545;
}

/* Contest Subtitle */
.contest-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
    font-weight: 500;
    text-align: center;
}

.ranking-subtitle {
    font-size: 1rem;
    color: #666;
    font-weight: 400;
}

/* Contest Status Alert Styling */
.contest-status-alert {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    margin: 1rem 0 0.2rem 0;
}

.contest-status-alert .alert-heading {
    color: white !important;
    font-weight: 600;
}

.contest-status-alert p {
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0;
}

/* Contest Rankings Styling */
.ranking-list {
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.ranking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
}

.ranking-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.ranking-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.rank-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    min-width: 2.5rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.rank-badge:hover {
    transform: scale(1.1);
}

.rank-1 {
    background: linear-gradient(45deg, #ffd700, #ffed4e) !important;
    color: #000 !important;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
}

.rank-2 {
    background: linear-gradient(45deg, #c0c0c0, #e0e0e0) !important;
    color: #000 !important;
    box-shadow: 0 4px 12px rgba(192, 192, 192, 0.4);
}

.rank-3 {
    background: linear-gradient(45deg, #cd7f32, #daa520) !important;
    color: #000 !important;
    box-shadow: 0 4px 12px rgba(205, 127, 50, 0.4);
}

.username {
    flex: 1;
    margin: 0 1rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.assets {
    font-weight: 700;
    color: #4ade80;
    font-size: 1.1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Contest Hero Section Overrides */
.hero-section.start .stat-number.text-success {
    color: #4ade80 !important;
}

.hero-section.start .stat-number.text-danger {
    color: #f87171 !important;
}

/* Contest Action Buttons */
.content-button {
    display: inline-block;
    background-color: #1c3f73;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid #1c3f73;
    text-align: center;
}

.content-button:hover {
    background-color: #0f2a4f;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(28, 63, 115, 0.3);
}

.content-button.btn-outline-primary {
    background-color: transparent;
    color: #1c3f73;
    border-color: #1c3f73;
}

.content-button.btn-outline-primary:hover {
    background-color: #1c3f73;
    color: white;
}

.content-button.btn-info {
    background-color: #17a2b8;
    border-color: #17a2b8;
}

.content-button.btn-info:hover {
    background-color: #138496;
    border-color: #138496;
}

.content-button.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

.content-button.btn-success:hover {
    background-color: #218838;
    border-color: #218838;
}

/* Contest Leave Button */
.btn-outline-danger {
    background-color: transparent;
    color: #dc3545;
    border-color: #dc3545;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    transition: all 0.3s ease;
}

.btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
    transform: translateY(-1px);
}

/* Contest Feature Cards Enhancement */
.feature-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 50%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05), inset 0 0 0.2rem 0.2rem rgba(11, 34, 66, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
    min-width: 21rem;
    max-width: 21rem;
    height: 16.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.4;
    font-family: 'Noto Sans KR', sans-serif;
}

/* Contest Section Backgrounds */
.tab-system-section {
    background-color: #f8f9fa;
    padding: 2rem 0 2rem 0;
}

.verification-section {
    background-color: #ffffff;
    padding: 0rem 0 4rem 0;
}

/* Contest Text Spacing Improvements */
.hero-section .small_words {
    margin-bottom: 1rem !important;
    margin-top: 0.5rem !important;
}

.hero-section .small_words h4 {
    margin-bottom: 0.3rem !important;
    margin-top: 0.3rem !important;
}

.contest-badge-container {
    margin: 1rem 0 0.5rem 0;
}

.hero-cta-buttons {
    margin-top: 0.5rem !important;
}

.hero-stats-bar {
    margin-top: 1rem !important;
}

/* Desktop specific positioning */
@media (min-width: 769px) {
    .hero-section .small_words {
        margin-bottom: 0.3rem !important;
    }
    
    .hero-cta-buttons {
        margin-top: 0.25rem !important;
        margin-bottom: 0.02rem !important;
    }
    
    .hero-stats-bar {
        margin-top: 0.02rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero-action-buttons {
        margin-top: 0.5rem !important;
    }
    
    /* 데스크톱에서 통계 바 위치 조정 */
    .contest-stats-right {
        justify-content: flex-end !important;
        margin-left: auto;
        max-width: 600px;
        width: 100%;
        flex-wrap: wrap;
        gap: 1.5rem;
        padding-right: 2rem;
        margin-right: 0;
    }
    
    .contest-stats-right .stat-item {
        min-width: 100px;
        flex-shrink: 0;
        max-width: 120px;
    }
    
    /* Center the content vertically on desktop */
    .hero-section.start {
        display: flex;
        align-items: center;
        min-height: 100vh;
    }
    
    .hero-section .container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 80vh;
    }
    
    .hero-actions-container {
        justify-content: space-between;
        max-width: 800px;
        margin: 0 auto;
    }
    
}

/* Compact Dashboard Styles */
.compact-dashboard {
    background: #f8f9fa;
    padding: 2rem 0;
}

.dashboard-actions {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.action-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.action-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 140px;
    text-align: center;
}

.action-btn.primary {
    background: #1c3f73;
    color: white;
    border-color: #1c3f73;
}

.action-btn.primary:hover {
    background: #0f2a4f;
    color: white;
    transform: translateY(-2px);
}

.action-btn.outline {
    background: transparent;
    color: #1c3f73;
    border-color: #1c3f73;
}

.action-btn.outline:hover {
    background: #1c3f73;
    color: white;
}

.action-btn.info {
    background: #17a2b8;
    color: white;
    border-color: #17a2b8;
}

.action-btn.info:hover {
    background: #138496;
    color: white;
}

.action-btn.success {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.action-btn.success:hover {
    background: #218838;
    color: white;
}

.top-rankings {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    height: 100%;
}

.ranking-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
}

.ranking-list-compact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ranking-item-compact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease;
}

.ranking-item-compact:hover {
    background: #f8f9fa;
}

.rank-badge-compact {
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    min-width: 1.5rem;
    text-align: center;
}

.rank-badge-compact.rank-1 {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #000;
}

.rank-badge-compact.rank-2 {
    background: linear-gradient(45deg, #c0c0c0, #e0e0e0);
    color: #000;
}

.rank-badge-compact.rank-3 {
    background: linear-gradient(45deg, #cd7f32, #daa520);
    color: #000;
}

.username-compact {
    flex: 1;
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.assets-compact {
    font-weight: 700;
    color: #28a745;
    font-size: 0.9rem;
}

/* Hero Action Buttons */
.hero-action-buttons {
    margin-top: 1rem !important;
    position: relative;
    z-index: 50 !important;
}

.hero-actions-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
}

.hero-action-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    min-width: 160px;
    text-align: center;
    color: white;
    flex: 1;
    max-width: 220px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-action-btn.primary {
    background: linear-gradient(45deg, #4da6ff, #1c3f73);
    border-color: #4da6ff;
}

.hero-action-btn.primary:hover {
    background: linear-gradient(45deg, #1c3f73, #0f2a4f);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(77, 166, 255, 0.3);
}

.hero-action-btn.outline {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: rgba(255, 255, 255, 0.8);
}

.hero-action-btn.outline:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.2);
}

.hero-action-btn.info {
    background: linear-gradient(45deg, #17a2b8, #138496);
    border-color: #17a2b8;
}

.hero-action-btn.info:hover {
    background: linear-gradient(45deg, #138496, #0f6674);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(23, 162, 184, 0.3);
}

.hero-action-btn.success {
    background: linear-gradient(45deg, #28a745, #20c997);
    border-color: #28a745;
}

.hero-action-btn.success:hover {
    background: linear-gradient(45deg, #218838, #1ea085);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40, 167, 69, 0.3);
}

.hero-action-btn.danger {
    background: linear-gradient(45deg, #dc3545, #e74c3c);
    border-color: #dc3545;
}

.hero-action-btn.danger:hover {
    background: linear-gradient(45deg, #c82333, #c0392b);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.3);
}

.hero-leave-form {
    display: inline-block;
    margin: 0;
}

/* Contest Join Page Layout */
.hero-content-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 1200px;
    margin-left: 0;
    margin-right: auto;
}

.hero-content-left {
    flex: 1;
    max-width: 60%;
    padding-left: 0;
    margin-left: 0;
}

.hero-content-right {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    padding-top: 1rem;
}

/* Contest Rules Section */
.contest-rules-section {
    margin-top: 2rem;
}

.rules-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: left;
}

.rules-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.rule-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.rule-icon {
    font-size: 1.3rem;
    min-width: 2.5rem;
    text-align: center;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.rule-text {
    color: white;
    font-size: 1rem;
    font-weight: 500;
    flex: 1;
    line-height: 1.4;
}

/* Join Button */
.hero-join-btn {
    background: linear-gradient(45deg, #4da6ff, #1c3f73);
    border: 3px solid #4da6ff;
    color: white;
    padding: 2rem 2rem;
    border-radius: 50%;
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(77, 166, 255, 0.4);
    width: 300px;
    height: 300px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.2;
}

.hero-join-btn:hover {
    background: linear-gradient(45deg, #1c3f73, #0f2a4f);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(77, 166, 255, 0.5);
    color: white;
}

.hero-join-form {
    display: inline-block;
    margin: 0;
}

/* Contest Join Responsive Design */
@media (max-width: 768px) {
    .hero-content-layout {
        flex-direction: column;
        gap: 2rem;
        margin-top: 1rem;
    }
    
    .hero-content-left {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .hero-content-right {
        align-self: center;
        padding-top: 0;
    }
    
    .contest-rules-section {
        margin-top: 1.5rem;
        width: 100%;
    }
    
    .rules-preview {
        width: 100%;
    }
    
    .rule-preview-item {
        width: 100%;
        box-sizing: border-box;
    }
    
    .rules-show-more-btn {
        width: 100%;
        box-sizing: border-box;
    }
    
    .rules-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .rule-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .rule-icon {
    font-size: 1.1rem;
        min-width: 2rem;
    }
    
    .rule-text {
        font-size: 0.9rem;
    }
    
    .hero-join-btn {
        width: 100%;
        height: auto;
        padding: 1rem 2rem;
        font-size: 1rem;
    border-radius: 0.5rem;
        min-width: 200px;
    }
}

/* Hero Ranking Section */
.hero-ranking-section {
    margin-top: 2rem;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
}

.ranking-header {
    text-align: center;
    margin-bottom: 2rem;
}

.ranking-title {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
}

.ranking-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin: 0;
}

/* Ranking Tabs */
.ranking-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.ranking-tab {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    color: white;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ranking-tab:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.ranking-tab.active {
    background: linear-gradient(45deg, #4da6ff, #1c3f73);
    border-color: #4da6ff;
    box-shadow: 0 4px 15px rgba(77, 166, 255, 0.3);
}

.ranking-tab.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.ranking-tab.active:hover::before {
    left: 100%;
}

/* Ranking Pagination */
.ranking-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem;
}

.pagination-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 80px;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagination-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    min-width: 100px;
    text-align: center;
}

.hero-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-right: 0.5rem;
}

.hero-ranking-list::-webkit-scrollbar {
    width: 6px;
}

.hero-ranking-list::-webkit-scrollbar-track {
    background: transparent;
}

.hero-ranking-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.hero-ranking-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.hero-ranking-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
}

.hero-ranking-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
    border-color: rgba(255, 255, 255, 0.3);
}

.hero-ranking-item.current-user {
    background: linear-gradient(135deg, rgba(255, 234, 167, 0.3) 0%, rgba(250, 177, 160, 0.3) 100%);
    border-color: rgba(225, 112, 85, 0.5);
    border-left: 4px solid #e17055;
}

.hero-rank-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.hero-rank-badge .hero-rank-number {
    color: white;
    font-size: 1rem;
}

.hero-user-info {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 0.75rem;
}

.hero-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.1);
    display: block;
}

.hero-user-icon {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    color: white !important;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.hero-user-details {
    flex: 1;
}

.hero-username {
    font-size: 1rem;
    font-weight: 600;
    color: white;
    margin: 0 0 0.25rem 0;
}

.hero-school {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.hero-assets-info {
    text-align: right;
    min-width: 100px;
}

.hero-total-assets {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.25rem 0;
}

.hero-profit-loss {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
}

.hero-profit-loss.positive {
    color: #00b894;
}

.hero-profit-loss.negative {
    color: #e17055;
}

/* School Ranking Styles */
.hero-ranking-item.school-ranking {
    background: linear-gradient(135deg, rgba(77, 166, 255, 0.1) 0%, rgba(28, 63, 115, 0.1) 100%);
    border-color: rgba(77, 166, 255, 0.3);
}

.hero-ranking-item.school-ranking:hover {
    background: linear-gradient(135deg, rgba(77, 166, 255, 0.2) 0%, rgba(28, 63, 115, 0.2) 100%);
    border-color: rgba(77, 166, 255, 0.5);
}

.hero-school-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4da6ff, #1c3f73);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-right: 0.75rem;
    box-shadow: 0 2px 8px rgba(77, 166, 255, 0.3);
}

/* No Team Data */
.no-team-data {
    text-align: center;
    padding: 3rem 2rem;
    color: rgba(255, 255, 255, 0.8);
}

.no-data-icon {
    font-size: 4rem;
        margin-bottom: 1rem;
    opacity: 0.7;
}

.no-team-data h4 {
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.no-team-data p {
    font-size: 1rem;
    margin: 0;
    opacity: 0.8;
}

/* Hero Ranking Responsive Design */
@media (max-width: 768px) {
    .hero-ranking-section {
        margin-top: 2rem;
        padding: 0 1rem;
    }
    
    .ranking-title {
        font-size: 1.5rem;
    }
    
    .ranking-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-ranking-list {
        gap: 0.5rem;
        padding-right: 0.25rem;
    }
    
    .hero-ranking-item {
        padding: 0.75rem 1rem;
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
    
    .hero-rank-badge {
        width: 40px;
        height: 40px;
        margin-right: 0.5rem;
        margin-bottom: 0;
        font-size: 1.1rem;
        flex-shrink: 0;
    }
    
    .hero-user-info {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        flex: 1;
        justify-content: flex-start;
        min-width: 0;
    }
    
    .hero-user-avatar {
        width: 35px;
        height: 35px;
        flex-shrink: 0;
    }
    
    .hero-user-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem !important;
    }
    
    .hero-user-details {
        display: flex;
        flex-direction: column;
        gap: 0.1rem;
        min-width: 0;
        width: 100%;
        align-items: flex-start;
    }
    
    .hero-username {
        font-size: 0.9rem;
        line-height: 1.1;
        margin: 0;
    }
    
    /* 팀랭킹에서 학교명 글씨 크기 조정 */
    .hero-ranking-item.school-ranking .hero-username {
        font-size: 0.85rem;
    }
    
    .hero-school {
        font-size: 0.75rem;
        line-height: 1.1;
        margin: 0;
        color: rgba(255, 255, 255, 0.7);
        width: 100%;
        text-align: left;
        margin-top: 0.25rem;
    }
    
    .hero-assets-info {
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        align-items: center;
        flex-shrink: 0;
        margin-left: auto;
    }
    
    .hero-total-assets {
        font-size: 1rem;
    }
    
    .hero-profit-loss {
        font-size: 0.85rem;
    }
    
    /* Mobile Tab Styles */
    .ranking-tabs {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .ranking-tab {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .no-team-data {
        padding: 2rem 1rem;
    }
    
    .no-data-icon {
        font-size: 3rem;
    }
    
    .no-team-data h4 {
        font-size: 1.3rem;
    }
    
    .no-team-data p {
        font-size: 0.9rem;
    }
    
    /* Mobile School Ranking Styles */
    .hero-school-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
        margin-right: 0.5rem;
    }
    
    /* Mobile Pagination Styles */
    .ranking-pagination {
        gap: 0.5rem;
        margin-top: 1rem;
        padding: 0.75rem;
    }
    
    .pagination-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        min-width: 60px;
    }
    
    .pagination-info {
        font-size: 0.8rem;
        min-width: 80px;
    }
}

/* Contest Dashboard Desktop Header Adjustments */
@media (min-width: 769px) {
    .hero-section.start {
        display: flex;
        align-items: flex-start;
        min-height: auto;
        height: auto;
    }
    
    .hero-section .container {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        min-height: auto;
        height: auto;
    }
}

/* Contest pages - let base.css handle navbar completely */

/* Dropdown Styles - contest action buttons only */
.hero-action-buttons .dropdown {
    position: relative;
    display: inline-block;
    flex: 1;
    max-width: 220px;
}

.hero-action-buttons .dropdown-toggle::after {
    margin-left: 0.5rem;
    vertical-align: 0.1em;
    content: "▼";
    font-size: 0.7rem;
}

.hero-action-buttons .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    min-width: 200px;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    list-style: none;
}

.hero-action-buttons .dropdown-menu.show {
    display: block;
}

.hero-action-buttons .dropdown-item {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    clear: both;
    font-weight: 500;
    color: #333;
    text-align: left;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    transition: all 0.3s ease;
}

.hero-action-buttons .dropdown-item:hover {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    color: #1c3f73;
    transform: translateX(5px);
}

.hero-action-buttons .dropdown-item:focus {
    background: linear-gradient(45deg, #f8f9fa, #e9ecef);
    color: #1c3f73;
    outline: none;
}


/* Contest Responsive Design */
@media (max-width: 768px) {
    .contest-status-alert {
        margin: 0.5rem 0;
        padding: 0.75rem;
    }
    
    .ranking-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.5rem 0;
    }
    
    .username {
        margin: 0;
        order: 2;
    }
    
    .assets {
        order: 3;
    }
    
    .rank-badge {
        order: 1;
        margin-bottom: 0.25rem;
    }
    
    .content-button {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .contest-portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .contest-portfolio-card {
        padding: 1.5rem;
    }
    
    .portfolio-value {
        font-size: 1.5rem;
    }
    
    .contest-stats-right {
        justify-content: center !important;
        margin-left: 0;
        max-width: 100%;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .contest-stats-right .stat-item {
        min-width: 100px;
        flex: 1;
        max-width: 150px;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .action-btn {
        width: 100%;
        min-width: auto;
    }
    
    .compact-dashboard {
        padding: 1rem 0;
    }
    
    .dashboard-actions,
    .top-rankings {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* 모바일에서 헤더 섹션 높이 조정 - padding 제거 */
    .hero-section.start {
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    .hero-section .container {
        min-height: auto !important;
        height: auto !important;
        padding: 0;
        display: block;
        overflow: visible !important;
    }
    
    /* 모바일에서 버튼 컨테이너 조정 - 2x2 그리드 */
    .hero-actions-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        margin-top: 1rem !important;
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .hero-action-btn {
        width: 100%;
        min-width: auto;
        padding: 0.6rem 0.8rem;
        font-size: 0.75rem;
        margin-bottom: 0;
        text-align: center;
    }
    
    .hero-action-buttons .dropdown {
        width: 100%;
        max-width: 100%;
    }
    
    .hero-action-buttons .dropdown-menu {
        width: 100%;
        min-width: 100%;
    }
    
    /* 모바일에서 텍스트 간격 조정 */
    .hero-section .start_words {
        margin-top: 3rem !important;
        padding-top: 2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-section .start_words h1 {
        margin-top: 0 !important;
        padding-top: 0 !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero-section .small_words {
        margin-bottom: 0.5rem !important;
    }
    
    .hero-cta-buttons {
        margin-top: 0.5rem !important;
    }
    
    .hero-stats-bar {
        margin-top: 0.5rem !important;
    }
    
    .hero-action-buttons {
        margin-top: 0.5rem !important;
        margin-bottom: 2rem !important;
    }
    
    .contest-stats-right .stat-number {
        font-size: 2rem !important;
    }
    
    .contest-stats-right .stat-label {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .contest-status-alert {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .ranking-list {
        padding: 0.5rem;
    }
    
    .content-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    /* 매우 작은 화면에서 추가 조정 - padding 제거 */
    .hero-section.start {
        overflow: visible !important;
    }
    
    .hero-section .container {
        padding: 0;
        overflow: visible !important;
    }
    
    .hero-section .start_words {
        margin-top: 2rem !important;
        padding-top: 1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .hero-actions-container {
        padding: 0 0.5rem;
        gap: 0.5rem;
    }
    
    .contest-rules-section {
        width: 100%;
        padding: 0 0.5rem;
        box-sizing: border-box;
    }
    
    .rules-preview {
        width: 100%;
        gap: 0.5rem;
    }
    
    .rule-preview-item {
        width: 100%;
        padding: 1rem;
        box-sizing: border-box;
    }
    
    .rules-show-more-btn {
        width: 100%;
        padding: 0.75rem 1rem;
        box-sizing: border-box;
    }
    
    .hero-action-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        margin-bottom: 0.25rem;
    }
    
    .hero-section .start_words h1 {
        font-size: 1.8rem !important;
        line-height: 1.2 !important;
    }
    
    .hero-section .small_words h4 {
        font-size: 1rem !important;
        line-height: 1.3 !important;
    }
    
    /* 모바일에서 네비게이션 바 높이 고려 - 제거하여 base.css가 처리하도록 */
}
