:root {
    --ow-bg: #050505;          /* Deep Black */
    --ow-card: #121212;
    --ow-card-hover: #1c1c1c;
    --ow-border: #262626;
    --ow-text: #f5f5f5;
    --ow-muted: #a3a3a3;
    --ow-gold: #d4af37;        /* Luxury Gold */
    --ow-gold-light: #fde047;  /* Yellow Gold */
    --ow-silver: #9ca3af;
    --ow-bronze: #b45309;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, "Pretendard", "Segoe UI", serif; background: var(--ow-bg); color: var(--ow-text); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; cursor: pointer; }

.ow-container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.ow-flex-between { display: flex; justify-content: space-between; align-items: center; }

/* Header */
.ow-header { background: rgba(5,5,5,0.95); border-bottom: 1px solid var(--ow-border); padding: 20px 0; position: sticky; top: 0; z-index: 100; backdrop-filter: blur(10px); }
.ow-brand { font-family: "Georgia", serif; font-size: 1.3rem; font-weight: 900; color: var(--ow-gold); letter-spacing: 2px; display: flex; align-items: center; gap: 8px; }
.ow-nav { display: flex; gap: 24px; font-size: 0.9rem; font-weight: 600; color: var(--ow-muted); }
.ow-nav a:hover { color: var(--ow-gold-light); }

/* Hero */
.ow-hero { padding: 60px 0 40px 0; text-align: center; }
.ow-hero-badge { display: inline-block; background: rgba(212, 175, 55, 0.1); border: 1px solid rgba(212, 175, 55, 0.3); color: var(--ow-gold-light); padding: 4px 16px; border-radius: 20px; font-size: 0.8rem; font-weight: 800; margin-bottom: 20px; letter-spacing: 1px; text-transform: uppercase; }
.ow-hero h1 { font-family: "Georgia", serif; font-size: 2.5rem; font-weight: 900; line-height: 1.3; margin-bottom: 16px; color: #fff; letter-spacing: -1px; }
.ow-hero p { font-size: 1.05rem; color: var(--ow-muted); max-width: 800px; margin: 0 auto; line-height: 1.7; }

/* 🌟 TOP 3 PODIUM (시상대 구조 - 100% 풋프린트 회피 DOM) 🌟 */
.ow-podium-section { margin-bottom: 60px; }
.ow-podium-flex { display: flex; align-items: flex-end; justify-content: center; gap: 16px; min-height: 380px; margin-top: 40px; }

.ow-podium-card { background: var(--ow-card); border: 1px solid var(--ow-border); border-radius: 12px 12px 0 0; padding: 24px 20px; text-align: center; position: relative; width: 300px; transition: transform 0.2s, border-color 0.2s; display: flex; flex-direction: column; }
.ow-podium-card:hover { border-color: var(--ow-gold); background: var(--ow-card-hover); }

/* 시상대 순위별 높이 및 스타일 지정 */
/* 2위 (좌측) */
.ow-p2 { height: 320px; border-top: 4px solid var(--ow-silver); order: 1; }
.ow-p2 .ow-p-medal { color: var(--ow-silver); }

/* 1위 (중앙 - 가장 높고 큼) */
.ow-p1 { height: 380px; border-top: 6px solid var(--ow-gold); order: 2; z-index: 10; box-shadow: 0 -10px 30px rgba(212, 175, 55, 0.15); width: 340px; }
.ow-p1 .ow-p-medal { color: var(--ow-gold); font-size: 4rem; margin-top: -30px; text-shadow: 0 0 20px rgba(212, 175, 55, 0.5); }
.ow-p1 .ow-p-logo { height: 50px; }

/* 3위 (우측) */
.ow-p3 { height: 290px; border-top: 4px solid var(--ow-bronze); order: 3; }
.ow-p3 .ow-p-medal { color: var(--ow-bronze); }

.ow-p-medal { font-family: "Georgia", serif; font-size: 3rem; font-weight: 900; line-height: 1; margin-bottom: 15px; }
.ow-p-logo { height: 40px; background: #fff; padding: 4px 10px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; width: 100%; }
.ow-p-logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
.ow-p-name { font-size: 1.3rem; font-weight: 900; color: #fff; margin-bottom: 8px; }
.ow-p-benefit { font-size: 0.95rem; font-weight: 800; color: var(--ow-gold-light); margin-bottom: auto; }
.ow-btn-gold { margin-top: 20px; display: block; background: linear-gradient(135deg, #d4af37 0%, #facc15 100%); color: #000; font-size: 0.9rem; font-weight: 900; padding: 12px; border-radius: 6px; transition: opacity 0.2s; }
.ow-btn-gold:hover { opacity: 0.9; }

/* 🌟 LEADERBOARD (4~17위 리스트) 🌟 */
.ow-sec-title { font-family: "Georgia", serif; font-size: 1.6rem; font-weight: 900; color: #fff; text-align: center; margin-bottom: 30px; letter-spacing: 1px; }
.ow-sec-title::after { content: ""; display: block; width: 60px; height: 3px; background: var(--ow-gold); margin: 10px auto 0 auto; }

.ow-leaderboard { background: var(--ow-card); border: 1px solid var(--ow-border); border-radius: 12px; overflow: hidden; margin-bottom: 60px; }
.ow-board-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; border-bottom: 1px solid var(--ow-border); transition: background 0.2s; }
.ow-board-row:hover { background: #1a1a1a; }
.ow-board-row:last-child { border-bottom: none; }

.ow-row-left { display: flex; align-items: center; gap: 20px; }
.ow-row-rank { font-family: "Georgia", serif; font-size: 1.2rem; font-weight: 900; color: var(--ow-muted); width: 30px; text-align: center; }
.ow-row-logo { width: 75px; height: 35px; background: #fff; border-radius: 4px; padding: 2px; display: flex; align-items: center; justify-content: center; }
.ow-row-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ow-row-name { font-size: 1.1rem; font-weight: 800; color: #fff; }

.ow-row-center { flex: 1; padding: 0 30px; font-size: 0.9rem; color: var(--ow-muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

.ow-row-right { display: flex; align-items: center; gap: 20px; width: 220px; justify-content: flex-end; }
.ow-row-benefit { font-size: 0.9rem; font-weight: 800; color: var(--ow-gold-light); }
.ow-row-arrow { color: var(--ow-muted); font-family: monospace; font-size: 1.2rem; transition: color 0.2s, transform 0.2s; }
.ow-board-row:hover .ow-row-arrow { color: var(--ow-gold); transform: translateX(4px); }

/* Document Box */
.ow-doc-box { background: var(--ow-card); border: 1px solid var(--ow-border); padding: 40px; border-radius: 12px; margin-bottom: 60px; }
.ow-doc-box h2 { font-size: 1.4rem; font-weight: 900; color: #fff; margin-bottom: 20px; }
.ow-doc-box h3 { font-size: 1.1rem; font-weight: 800; color: var(--ow-gold); margin: 24px 0 10px 0; }
.ow-doc-box p, .ow-doc-box li { font-size: 0.95rem; color: var(--ow-muted); line-height: 1.8; margin-bottom: 12px; }
.ow-doc-box ul { padding-left: 20px; list-style-type: disc; color: var(--ow-gold); }
.ow-doc-box li span { color: var(--ow-muted); }

/* Posts Grid */
.ow-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 60px; }
.ow-post-card { background: var(--ow-card); border: 1px solid var(--ow-border); padding: 24px; border-radius: 12px; transition: border-color 0.2s; display: flex; flex-direction: column; }
.ow-post-card:hover { border-color: var(--ow-gold); }
.ow-post-cat { font-size: 0.75rem; font-weight: 800; color: var(--ow-gold-light); margin-bottom: 10px; text-transform: uppercase; }
.ow-post-title { font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 12px; line-height: 1.4; }
.ow-post-summary { font-size: 0.9rem; color: var(--ow-muted); line-height: 1.6; margin-bottom: 20px; flex: 1; }
.ow-post-meta { font-size: 0.8rem; color: #52525b; border-top: 1px solid var(--ow-border); padding-top: 12px; }

/* Footer */
.ow-footer { border-top: 1px solid var(--ow-border); background: #050505; padding: 60px 0 30px 0; margin-top: 40px; }
.ow-footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.ow-footer-info p { font-size: 0.9rem; color: var(--ow-muted); line-height: 1.6; max-width: 450px; }
.ow-footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.ow-footer-links a { font-size: 0.9rem; font-weight: 600; color: var(--ow-muted); }
.ow-footer-links a:hover { color: #fff; }
.ow-legal-box { background: rgba(220, 38, 38, 0.1); border: 1px solid rgba(220, 38, 38, 0.2); padding: 16px 20px; border-radius: 8px; color: #fca5a5; font-size: 0.85rem; line-height: 1.6; margin-bottom: 30px; }
.ow-footer-bottom { display: flex; justify-content: space-between; font-size: 0.8rem; color: #52525b; border-top: 1px solid var(--ow-border); padding-top: 20px; }

/* Responsive */
@media (max-width: 1024px) {
    .ow-podium-flex { gap: 10px; }
    .ow-podium-card { width: 33%; }
    .ow-p1 { width: 36%; }
    .ow-row-center { display: none; } /* 테이블 중간 설명글 숨김 */
    .ow-posts-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 📱 Mobile Extreme Optimization (접속 즉시 노출용) */
@media (max-width: 768px) {
    .ow-nav { display: none; }
    
    .ow-hero { padding: 30px 0 20px 0; }
    .ow-hero h1 { font-size: 1.6rem; margin-bottom: 10px; }
    .ow-hero p { font-size: 0.9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    
    /* 🌟 모바일에서는 시상대를 가로 배치가 아닌, 세로 스택으로 강제 변경하여 1위가 맨 위에 뜨도록 (Flex Order 활용) 🌟 */
    .ow-podium-flex { flex-direction: column; align-items: stretch; min-height: auto; gap: 16px; margin-top: 20px; }
    
    .ow-podium-card { width: 100% !important; height: auto !important; border-top: none; border-left: 4px solid; padding: 20px; text-align: left; display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 15px; border-radius: 8px; }
    
    .ow-p1 { order: 1; border-left-color: var(--ow-gold); box-shadow: none; } /* 1위가 맨 위로 */
    .ow-p2 { order: 2; border-left-color: var(--ow-silver); }
    .ow-p3 { order: 3; border-left-color: var(--ow-bronze); }
    
    .ow-p-medal { font-size: 2rem; margin: 0; text-align: center; }
    .ow-p1 .ow-p-medal { font-size: 2.5rem; margin: 0; }
    
    .ow-p-content-wrap { display: flex; flex-direction: column; }
    .ow-p-logo { width: 80px; height: 30px; margin-bottom: 8px; justify-content: flex-start; background: transparent; padding: 0; }
    .ow-p-logo img { object-position: left center; }
    .ow-p-name { font-size: 1.1rem; margin-bottom: 4px; }
    .ow-p-benefit { font-size: 0.85rem; }
    
    .ow-btn-gold { margin-top: 0; padding: 10px 16px; font-size: 0.85rem; }

    /* 리더보드 모바일 압축 */
    .ow-sec-title { font-size: 1.3rem; margin-bottom: 20px; }
    .ow-board-row { padding: 14px 16px; }
    .ow-row-left { gap: 12px; }
    .ow-row-rank { font-size: 1rem; width: 24px; }
    .ow-row-logo { display: none; } /* 모바일 공간 확보 위해 로고 숨김 */
    .ow-row-name { font-size: 1rem; }
    .ow-row-right { width: auto; gap: 10px; }
    .ow-row-benefit { font-size: 0.85rem; }
    
    .ow-posts-grid { grid-template-columns: 1fr; }
    .ow-doc-box { padding: 24px; }
}