/* rain/style.css — 퇴근길 폭우 전용 화면 요소 (공통 ui.css 위에 덧씌움) */

/* HUD 는 인트로 1.2초 뒤에 나타남 */
body.rn-on:not(.rn-hud) .ods-tl, body.rn-on:not(.rn-hud) .ods-tr { opacity: 0; }
.ods-tl, .ods-tr { transition: opacity 0.4s; }

/* 젖음 게이지 */
.rn-wet { display: flex; align-items: center; gap: 8px; background: rgba(8, 12, 20, 0.62); border: 1px solid rgba(140, 180, 255, 0.18); border-radius: 999px; padding: 6px 12px 6px 12px; font-weight: 900; }
.rn-wet span { font-size: 13px; color: #cfe3ff; }
.rn-wet b { font-size: 17px; min-width: 42px; text-align: right; font-variant-numeric: tabular-nums; color: #fff; }
.rn-bar { width: 108px; height: 10px; border-radius: 10px; background: rgba(255,255,255,0.14); overflow: hidden; }
.rn-bar i { display: block; height: 100%; width: 0; border-radius: 10px; background: linear-gradient(90deg, #7fd0ff, #3a8bff); transition: width 0.15s; }
.rn-wet.mid .rn-bar i { background: linear-gradient(90deg, #3a8bff, #6a5bff); }
.rn-wet.hi .rn-bar i { background: linear-gradient(90deg, #6a5bff, #ff4b6b); }
.rn-wet.hi { animation: odsPulse 0.5s infinite alternate; }
.rn-sock { font-size: 12px; font-weight: 800; color: #b9cbe4; background: rgba(8, 12, 20, 0.5); border-radius: 999px; padding: 3px 10px; }
.rn-sock.s1 { color: #9fd0ff; } .rn-sock.s2 { color: #ff9a8a; }
.rn-umb { font-size: 12px; font-weight: 900; color: #e8f4ff; background: rgba(120, 190, 255, 0.22); border: 1px solid rgba(160, 210, 255, 0.5); border-radius: 999px; padding: 3px 10px; }
.rn-umb.broken { color: #ffb3a8; background: rgba(255, 80, 60, 0.18); border-color: rgba(255, 120, 100, 0.5); }

/* 버스 도착 안내 (서울 버스 앱 느낌) */
.rn-bus { display: flex; align-items: center; gap: 8px; background: rgba(8, 12, 20, 0.7); border: 1px solid rgba(255,255,255,0.12); border-radius: 14px; padding: 6px 12px 6px 6px; }
.rn-bus i { font-style: normal; font-weight: 900; font-size: 17px; color: #fff; background: #1b5fc4; border-radius: 9px; padding: 6px 9px; letter-spacing: 0.02em; }
.rn-bus div { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.rn-bus b { font-size: 17px; font-weight: 900; color: #ffd24a; font-variant-numeric: tabular-nums; }
.rn-bus small { font-size: 11px; color: #b9c4d6; font-weight: 700; }
.rn-bus.hot b { color: #ff5a4a; animation: odsPulse 0.45s infinite alternate; }
.rn-dist { font-size: 12px; font-weight: 800; color: #d8e4f4; background: rgba(8, 12, 20, 0.5); border-radius: 999px; padding: 3px 10px; }

/* 폰 알림 (첫 장면) */
.rn-noti { position: fixed; left: 50%; top: max(12px, env(safe-area-inset-top)); z-index: 6; width: min(92vw, 380px); transform: translate(-50%, -160%); opacity: 0; transition: transform 0.45s cubic-bezier(.2,1.2,.4,1), opacity 0.25s; display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-radius: 20px; background: #f2f5fa; color: #111; box-shadow: 0 10px 30px rgba(0,0,0,0.45); pointer-events: none; }
.rn-noti.show { transform: translate(-50%, 0); opacity: 1; }
.rn-noti i { flex: none; font-style: normal; font-weight: 900; font-size: 12px; color: #fff; background: #1b5fc4; border-radius: 10px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; }
.rn-noti div { display: flex; flex-direction: column; min-width: 0; }
.rn-noti p { display: flex; justify-content: space-between; font-size: 12px; color: #555; gap: 8px; }
.rn-noti p b { font-weight: 800; color: #333; }
.rn-noti strong { font-size: 17px; font-weight: 900; margin-top: 1px; }
.rn-noti small { font-size: 12px; color: #c4151c; font-weight: 800; }
@media (min-width: 700px) { .rn-noti { top: 70px; } }

/* 경고 (차 물튀김 · 바람) */
.rn-warn { position: absolute; left: 50%; top: 21%; transform: translate(-50%, -6px); max-width: 92vw; padding: 8px 16px; border-radius: 12px; font-size: 18px; font-weight: 900; text-align: center; word-break: keep-all; opacity: 0; transition: opacity 0.15s, transform 0.15s; color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,0.5); }
.rn-warn.show { opacity: 1; transform: translate(-50%, 0); }
.rn-warn.car { background: rgba(200, 30, 30, 0.82); border: 2px solid rgba(255, 140, 120, 0.9); animation: rnWarn 0.32s infinite alternate; }
.rn-warn.wind { background: rgba(40, 110, 200, 0.82); border: 2px solid rgba(150, 200, 255, 0.9); animation: rnWarn 0.4s infinite alternate; }
.rn-warn.soft { background: rgba(40, 70, 120, 0.6); border-color: rgba(150, 200, 255, 0.4); font-size: 14px; animation: none; }
@keyframes rnWarn { to { filter: brightness(1.35); } }
@media (max-width: 480px) { .rn-warn { font-size: 15px; top: 19%; } }

/* 프롬프트 · 힌트 */
body.rn-on .rn-prompt { font-size: 15px; padding: 7px 14px; border: 1px solid rgba(255, 213, 74, 0.45); top: calc(50% + 40px); }
.rn-hint { position: absolute; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(8px); max-width: min(92vw, 520px); background: rgba(10, 12, 18, 0.74); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 8px 14px; font-size: 15px; font-weight: 800; text-align: center; word-break: keep-all; opacity: 0; transition: opacity 0.25s, transform 0.25s; }
.rn-hint.show { opacity: 1; transform: translateX(-50%) translateY(0); }
body.touch .rn-hint { bottom: calc(232px + env(safe-area-inset-bottom)); font-size: 14px; }
.rn-ff { position: absolute; left: 50%; top: 31%; transform: translateX(-50%); font-size: 14px; font-weight: 900; color: #ffd24a; background: rgba(10, 12, 18, 0.66); border-radius: 999px; padding: 5px 14px; letter-spacing: 0.04em; animation: odsPulse 0.6s infinite alternate; }

/* 젖을수록 화면 가장자리가 차가워짐 */
.rn-vig { position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0; background: radial-gradient(ellipse at center, rgba(40,80,140,0) 45%, rgba(40,90,170,0.45) 80%, rgba(20,50,110,0.8)); }
/* 물벼락 */
.rn-splash { position: fixed; inset: 0; pointer-events: none; z-index: 3; opacity: 0; background: radial-gradient(ellipse at 20% 70%, rgba(220,235,255,0.95), rgba(150,180,220,0.75) 45%, rgba(90,120,170,0.35) 80%); }
.rn-splash.go { animation: rnSplash 0.9s ease-out; }
@keyframes rnSplash { 0% { opacity: 0.95; } 25% { opacity: 0.7; } 100% { opacity: 0; } }
.rn-black { position: fixed; inset: 0; pointer-events: none; z-index: 3; opacity: 0; background: #000; }

/* 편의점 */
.rn-store { position: fixed; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center; pointer-events: none; opacity: 0; transition: opacity 0.3s; background: linear-gradient(180deg, rgba(236, 250, 248, 0.97), rgba(205, 232, 228, 0.97)); }
.rn-store.show { opacity: 1; }
.rn-store-card { width: min(84vw, 340px); text-align: center; color: #12302d; }
.rn-s-brand { display: inline-block; font-size: 15px; font-weight: 900; color: #fff; background: #0f8f8a; border-bottom: 5px solid #ff8a1e; padding: 6px 14px; border-radius: 8px; margin-bottom: 18px; }
.rn-s-line { display: block; font-size: 30px; font-weight: 900; margin-bottom: 16px; word-break: keep-all; }
.rn-s-bar { height: 12px; border-radius: 12px; background: rgba(15, 143, 138, 0.18); overflow: hidden; }
.rn-s-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #0f8f8a, #ff8a1e); }
.rn-s-sub { display: block; margin-top: 10px; font-size: 14px; font-weight: 800; color: #3f6662; }

/* 탑승 (교통카드 삑) */
.rn-tap { position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 26px; border-radius: 18px; background: rgba(15, 20, 30, 0.85); border: 1px solid rgba(120, 200, 255, 0.5); pointer-events: none; }
.rn-tap b { font-size: 34px; font-weight: 900; color: #7fd0ff; }
.rn-tap span { font-size: 18px; font-weight: 800; color: #fff; }

/* 버튼 글자 */
.ctl-btn small { font-size: 12px; font-weight: 800; }
.ctl-btn.slot-d .ctl-label { font-size: 17px; }
.ctl-btn.slot-a.on { background: rgba(255, 213, 74, 0.38); border-color: rgba(255, 213, 74, 0.85); }
