/* [오늘의 시장 예측 위젯] 2026-11-01 홈 정리에서 홈 → 예측 랭킹(/market-predictions/ranking)으로 옮겼다.
   마크업·클래스는 홈 시절 그대로(public/js/home-prediction.js 가 .hp3-prediction-* 를 찾는다). 홈 CSS 에 기대지 않도록 여기서 새로 정의한다.
   템플릿: src/views/partials/market-prediction-widget.ejs. 상승 = 붉은 계열, 하락 = 푸른 계열. */
.hp3-prediction{box-sizing:border-box;display:flex;flex-direction:column;min-width:0;max-width:100%;margin:18px 0 0;padding:18px 20px;border:1px solid var(--border);border-radius:14px;background:radial-gradient(circle at 92% 8%,rgba(244,201,93,.12),transparent 38%),var(--panel);color:var(--text)}
.hp3-prediction *{box-sizing:border-box;min-width:0}
.hp3-prediction>header{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:8px}
.hp3-prediction>header span{display:block;color:var(--accent);font-size:10px;font-weight:900;letter-spacing:.11em}
.hp3-prediction>header .hp3-hd{margin-top:3px;font-size:21px;line-height:1.3;font-weight:800;letter-spacing:-.02em}
.hp3-prediction>header small{color:#f4c95d;font-size:12px;font-weight:900;white-space:nowrap}
.hp3-prediction>p{margin:0 0 12px;color:var(--muted);font-size:13px;line-height:1.6}
.hp3-prediction-list{display:flex;flex-direction:column;gap:8px}
.hp3-prediction-list>section{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:12px;border:1px solid var(--border);border-radius:10px;background:rgba(255,255,255,.02)}
.hp3-prediction-copy{display:flex;flex-direction:column}
.hp3-prediction-copy strong{font-size:15px;line-height:1.4}
.hp3-prediction-copy small{margin-top:2px;color:var(--muted);font-size:12px;line-height:1.5;white-space:normal;overflow-wrap:anywhere}
.hp3-prediction-distribution{display:block;margin-top:4px;color:var(--accent);font-size:11px;line-height:1.6}
.hp6-prediction-bar{display:block;height:5px;margin-top:5px;border-radius:3px;background:linear-gradient(to right,#ff7081 0 var(--prediction-up,50%),#7bc6eb var(--prediction-up,50%) 100%)}
.hp3-prediction-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;align-content:center;gap:6px;max-width:220px}
.hp3-prediction-actions button{min-height:40px;padding:9px 12px;border:1px solid var(--border);border-radius:9px;background:transparent;color:var(--text);font:inherit;font-size:13px;font-weight:750;white-space:nowrap;cursor:pointer;transition:border-color 150ms,background-color 150ms,transform 150ms}
.hp3-prediction-actions button:hover{transform:translateY(-1px)}
.hp3-prediction-actions button[data-option="UP"]{background:rgba(255,112,129,.1);border-color:rgba(255,112,129,.3);color:#ff7081}
.hp3-prediction-actions button[data-option="DOWN"]{background:rgba(123,198,235,.1);border-color:rgba(123,198,235,.3);color:#7bc6eb}
.hp3-prediction-actions button:disabled{opacity:.55;cursor:default;transform:none}
.hp3-prediction-actions .my-vote{color:var(--muted);font-size:12px}
.hp3-prediction-actions .my-vote b{color:var(--text)}
.hp3-prediction-actions em{flex-basis:100%;color:var(--muted);font-size:12px;font-style:normal;line-height:1.5;text-align:right;overflow-wrap:anywhere}
.hp3-prediction-actions:has(.prediction-status),.hp3-prediction-actions:has(.prediction-result),.hp3-prediction-actions:has(.prediction-holiday),.hp3-prediction-actions:has(.prediction-complete),.hp3-prediction-actions:has(.prediction-countdown){align-items:flex-end;flex-direction:column;gap:2px}
.hp3-prediction-actions .prediction-status{padding:2px 6px;border-radius:10px;background:rgba(255,255,255,.07)}
.hp3-prediction-actions .prediction-complete{color:#55dcb8;font-weight:900}
.hp3-prediction-actions .prediction-countdown{width:100%;color:var(--text);font-size:12px;font-weight:600;line-height:1.5;text-align:right;white-space:normal}
.hp3-prediction-actions .prediction-countdown-at{display:block;margin:2px 0 0;font-size:11px;line-height:1.5}
.hp3-perfect-day{margin:0 0 8px;padding:7px 9px;border:1px solid rgba(244,201,93,.4);border-radius:8px;background:rgba(244,201,93,.1);color:#f4c95d;font-size:12px;font-weight:800}
.hp3-prediction>footer{display:flex;flex-wrap:wrap;gap:6px 14px;margin-top:12px;padding-top:10px;border-top:1px solid var(--border);color:var(--muted);font-size:12px;line-height:1.6}
.hp3-prediction>footer b{color:var(--text)}
.hp3-prediction>footer:has(>span:only-child){display:flex}
.hp3-prediction-feedback{margin:8px 0 0;color:var(--accent);font-size:12px;line-height:1.5}
.hp3-prediction-feedback:empty{display:none}
.hp3-prediction-rank{margin-left:auto;color:var(--accent);font-size:11px;font-weight:900;text-decoration:none;white-space:nowrap}
@media(max-width:640px){
 .hp3-prediction{padding:14px 12px}
 .hp3-prediction>header .hp3-hd{font-size:18px}
 .hp3-prediction-list>section{grid-template-columns:minmax(0,1fr)}
 .hp3-prediction-actions{max-width:none;justify-content:flex-start}
 .hp3-prediction-actions button{flex:1}
 .hp3-prediction-actions:has(.prediction-status),.hp3-prediction-actions:has(.prediction-result),.hp3-prediction-actions:has(.prediction-holiday),.hp3-prediction-actions:has(.prediction-complete),.hp3-prediction-actions:has(.prediction-countdown){align-items:flex-start}
 .hp3-prediction-actions em,.hp3-prediction-actions .prediction-countdown{text-align:left}
}
