/* Date, duration and countdown form one schedule; participation stays separate.
   가격예측(#section_prediction_home_prediction)과 종목 홈(#section_prediction_home) 카드가 같은 머리줄을 쓴다 (2026-10-11). */
#section_prediction_home_prediction .ms-prediction-card-header,
#section_prediction_home .ms-prediction-card-header {
    gap: 12px 20px; align-items: center; flex-wrap: wrap; flex-direction: row;
}
#section_prediction_home_prediction .ms-prediction-card-header .ms-round-schedule,
#section_prediction_home .ms-prediction-card-header .ms-round-schedule {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
    min-width: 0; line-height: 1.5; margin: 0;
}
#section_prediction_home_prediction .ms-round-schedule > a,
#section_prediction_home .ms-round-schedule > a { white-space: nowrap; }
#section_prediction_home_prediction .ms-round-schedule > span,
#section_prediction_home .ms-round-schedule > span { margin-left: 0; }
#section_prediction_home_prediction .ms-round-schedule .category_1,
#section_prediction_home .ms-round-schedule .category_1 {
    display: inline-block; min-width: 46px; text-align: center; white-space: nowrap;
}
#section_prediction_home_prediction .ms-round-schedule .round_countdown,
#section_prediction_home .ms-round-schedule .round_countdown { white-space: nowrap; }
#section_prediction_home_prediction .ms-prediction-card-header .detail_info,
#section_prediction_home .ms-prediction-card-header .detail_info {
    display: flex; align-items: center; gap: 10px; margin: 0 0 0 auto; flex-shrink: 0;
}
#section_prediction_home_prediction .ms-prediction-card-header .participant_count_wrap,
#section_prediction_home .ms-prediction-card-header .participant_count_wrap {
    align-items: center; gap: 4px; margin: 0;
}
#section_prediction_home_prediction .ms-prediction-card-header .participant_status,
#section_prediction_home .ms-prediction-card-header .participant_status { white-space: nowrap; }
@media (max-width: 699px) {
    #section_prediction_home_prediction .round_item_wide .round_right,
    #section_prediction_home .round_item_wide .round_right { padding: 20px 16px; }
    #section_prediction_home_prediction .round_item_wide .round_top,
    #section_prediction_home .round_item_wide .round_top { padding: 0; }
    #section_prediction_home_prediction .ms-prediction-card-header .ms-round-schedule,
    #section_prediction_home .ms-prediction-card-header .ms-round-schedule { width: 100%; font-size: 16px; }
    #section_prediction_home_prediction .ms-prediction-card-header .detail_info,
    #section_prediction_home .ms-prediction-card-header .detail_info { width: auto; }
}

/* 종목 홈 카드: 예전 머리줄용 스타일(제목 · 오른쪽 배지)과 섞이지 않게 */
#section_prediction_home .ms-prediction-card-header { display: flex; justify-content: flex-start; }
#section_prediction_home .ms-prediction-card-header .participant_count_wrap { display: flex; }
#section_prediction_home .ms-prediction-card-header .participant_count_wrap .icon_people { width: 16px; height: auto; }

/* 종목 홈 "다음 라운드 더보기" → /prediction?date=…#round_{id} 로 오면 그 카드가 헤더에 가리지 않게 · 잠깐 강조 (2026-10-14) */
#section_prediction_home_prediction .round_item_wide[id^="round_"] { scroll-margin-top: 96px; }
#section_prediction_home_prediction .round_item_wide:target { animation: msRoundTargetFlash 2.4s ease-out 1; }
@keyframes msRoundTargetFlash {
    0%, 35% { box-shadow: 0 0 0 3px rgba(91, 33, 182, .55); }
    100% { box-shadow: 0 0 0 3px rgba(91, 33, 182, 0); }
}
