/* rush/style.css — 이 게임 전용 HUD (공통 ui.css 위에 덧붙임) */
.ods-tl .chip, .ods-tr .chip { font-size: 14px; }
.ods-tl .chip small { font-size: 12px; font-weight: 600; opacity: 0.78; }
.ods-tr .chip b, .ods-tl .chip b { font-weight: 900; }

/* 문 닫힘 카운트다운 */
.rush-door { position: absolute; left: 50%; top: calc(max(12px, env(safe-area-inset-top)) + 44px); transform: translateX(-50%); width: min(62vw, 380px); text-align: center; }
.rush-door .lbl { display: flex; justify-content: center; align-items: baseline; gap: 8px; font-weight: 900; font-size: 17px; text-shadow: 0 2px 0 #000, 0 0 10px rgba(0,0,0,0.8); margin-bottom: 6px; }
.rush-door .lbl b { font-size: 24px; color: #ffd54a; font-variant-numeric: tabular-nums; min-width: 2.4em; }
.rush-door .trk { height: 11px; border-radius: 8px; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.25); overflow: hidden; }
.rush-door .fil { height: 100%; width: 100%; background: linear-gradient(90deg, #ff4d3b, #ffb23b 55%, #ffe066); transition: width 0.1s linear; }
.rush-door.urgent .lbl { color: #ff6b5b; animation: odsShake 0.09s infinite; }
.rush-door.urgent .lbl b { color: #ff3b2f; }

/* 아래 가운데 안내 */
.rush-prompt { background: rgba(10, 10, 14, 0.72); border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; padding: 8px 14px; font-size: 16px; font-weight: 800; white-space: nowrap; text-shadow: 0 1px 2px #000; }
.rush-prompt b { color: #ffd54a; }
body.touch .rush-prompt { font-size: 15px; }

/* 쏠림 경고 */
.rush-warn { position: absolute; left: 0; right: 0; top: 19%; text-align: center; font-size: 40px; font-weight: 900; color: #ffd54a; text-shadow: 0 3px 0 #000, 0 0 22px rgba(0,0,0,0.9); animation: rushBlink 0.22s infinite alternate; padding: 0 12px; word-break: keep-all; }
body.touch .rush-warn { font-size: 30px; top: 18%; }
@keyframes rushBlink { from { opacity: 1; transform: scale(1.04); } to { opacity: 0.55; transform: scale(1); } }

/* 열차 안내 LCD */
.rush-lcd { position: absolute; left: 50%; top: calc(max(12px, env(safe-area-inset-top)) + 44px); transform: translateX(-50%); background: rgba(8, 10, 12, 0.88); border: 2px solid var(--rush-line, #35b04a); border-radius: 10px; padding: 7px 18px 8px; text-align: center; min-width: 200px; max-width: 92vw; }
.rush-lcd small { display: block; font-size: 12px; color: #ffb35c; font-weight: 800; }
.rush-lcd b { display: block; font-size: 24px; font-weight: 900; color: #fff; word-break: keep-all; }
.rush-lcd span { display: block; font-size: 12px; color: var(--rush-line-light, #9fe3a9); font-weight: 700; }
.rush-lcd i.exp { position: absolute; left: -2px; top: -11px; font-style: normal; font-size: 11px; font-weight: 900; color: #fff; background: #d7262e; border-radius: 6px; padding: 1px 7px; letter-spacing: 0.5px; }
body.touch .rush-lcd b { font-size: 21px; }

/* 내리는 문 표시 */
.rush-exit { position: absolute; left: 0; top: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 15px; font-weight: 900; color: #ffd54a; background: rgba(10,10,14,0.55); border: 2px solid rgba(255,213,74,0.8); border-radius: 12px; padding: 4px 10px 6px; text-shadow: 0 1px 2px #000; animation: rushFade 0.45s infinite alternate; pointer-events: none; will-change: transform; white-space: nowrap; }
@keyframes rushFade { from { opacity: 1; } to { opacity: 0.6; } }
.rush-exit i { display: block; width: 0; height: 0; border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 18px solid #ffd54a; filter: drop-shadow(0 1px 2px #000); }
.rush-exit.edge i { border-top: 13px solid transparent; border-bottom: 13px solid transparent; border-left: 20px solid #ffd54a; border-right: 0; }

/* 버튼 반짝 (지금 눌러!) */
.ctl-btn.rush-glow { border-color: #ffd54a; background: rgba(255, 213, 74, 0.32); animation: rushGlow 0.32s infinite alternate; }
@keyframes rushGlow { from { box-shadow: 0 0 0 rgba(255,213,74,0); } to { box-shadow: 0 0 22px rgba(255,213,74,0.85); } }

/* 꽉 끼면 시야 어두워짐 · 시작 암전 */
.rush-vig { position: fixed; inset: 0; pointer-events: none; z-index: 1; background: radial-gradient(ellipse at center, transparent 42%, rgba(0,0,0,0.92)); opacity: 0; }
.rush-fade { position: fixed; inset: 0; pointer-events: none; z-index: 6; background: #000; opacity: 0; }
