/* hoesik/style.css — 부장님이 2차 가자고 했다 전용 화면 요소 (공통 ui.css 위에 덧씌움) */

/* 의심 게이지 */
.hk-sus { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; text-shadow: 0 1px 2px #000; }
.hk-sus .track { width: 132px; height: 11px; border-radius: 11px; background: rgba(255,255,255,0.16); overflow: hidden; border: 1px solid rgba(0,0,0,0.35); }
.hk-sus .track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffe066, #ffc23a); transition: width 0.12s; }
.hk-sus b { font-size: 13px; min-width: 36px; font-variant-numeric: tabular-nums; }
.hk-sus.mid .track i { background: linear-gradient(90deg, #ffb13a, #ff7a2f); }
.hk-sus.hi .track i { background: linear-gradient(90deg, #ff6a3a, #ff2f2f); }
.hk-sus.hi { animation: odsPulse 0.35s infinite alternate; color: #ffb3a8; }

/* 챙긴 물건 */
.hk-items { display: flex; gap: 4px; }
.hk-items i { font-style: normal; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 7px; background: rgba(10,10,14,0.6); color: #b9b2a2; border: 1px solid rgba(255,255,255,0.1); }
.hk-items i.got { background: rgba(127,224,138,0.25); color: #c9f7cf; border-color: rgba(127,224,138,0.5); }
.hk-items i.got::before { content: '✓ '; }

/* 남은 시간 */
.hk-time { display: flex; align-items: baseline; gap: 3px; background: rgba(10,10,14,0.62); border: 1px solid rgba(255,255,255,0.08); padding: 5px 12px 6px; border-radius: 14px; font-weight: 800; }
.hk-time small { font-size: 11px; color: #cfc5ad; margin-right: 4px; }
.hk-time b { font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.hk-time span { font-size: 12px; }
.hk-time.low { background: rgba(160,20,20,0.75); animation: odsPulse 0.5s infinite alternate; }
.hk-time.low b { color: #ffe066; }

/* 취기 */
.hk-drunk { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; text-shadow: 0 1px 2px #000; color: #ffc9b8; }
.hk-drunk .track { width: 64px; height: 7px; border-radius: 7px; background: rgba(255,255,255,0.14); overflow: hidden; }
.hk-drunk .track i { display: block; height: 100%; width: 22%; background: linear-gradient(90deg, #ff9a7a, #ff4a6a); transition: width 0.3s; }

/* 3D 위에 띄우는 것들 (말풍선 · 경고 · 물건 표시) */
.hk-layer { position: fixed; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.hk-bubble { position: absolute; left: 0; top: 0; max-width: min(86vw, 380px); padding: 7px 13px 8px; border-radius: 16px; background: #fffaf0; color: #1b140c;
  font-size: 17px; font-weight: 900; line-height: 1.25; text-align: center; word-break: keep-all; white-space: normal; width: max-content; box-shadow: 0 4px 14px rgba(0,0,0,0.45);
  opacity: 0; translate: -50% -100%; transition: opacity 0.15s; border: 2px solid #1b140c; }
.hk-bubble.show { opacity: 1; }
.hk-bubble em { display: block; font-style: normal; font-size: 10px; font-weight: 800; color: #8a6a3a; letter-spacing: 0.04em; margin-bottom: 1px; }
.hk-bubble.big { font-size: 30px; padding: 9px 18px 11px; background: #ffe14d; border-width: 3px; }
.hk-bubble.big em { color: #6a4a10; }
.hk-bubble.dock { translate: -50% 0; }
.hk-bubble.daeri { background: #e8f2ff; }
.hk-bubble.imo { background: #ffe9e4; font-size: 15px; }
.hk-me { position: absolute; left: 50%; bottom: 26%; transform: translateX(-50%); font-size: 18px; font-weight: 800; color: #fff; text-shadow: 0 2px 0 #000, 0 0 12px rgba(0,0,0,0.9);
  opacity: 0; transition: opacity 0.2s; white-space: nowrap; }
.hk-me.show { opacity: 1; }
body.touch .hk-me { bottom: 36%; }
.hk-alert { position: absolute; left: 0; top: 0; translate: -50% -100%; font-size: 40px; font-weight: 900; line-height: 1; opacity: 0; text-shadow: 0 3px 0 #000, 0 0 14px rgba(0,0,0,0.8); }
.hk-alert.show { opacity: 1; }
.hk-alert.yellow { color: #ffe066; font-size: 30px; }
.hk-alert.orange { color: #ff9a3a; }
.hk-alert.red { color: #ff3b2f; font-size: 54px; animation: hkBeat 0.35s infinite alternate; }
@keyframes hkBeat { from { scale: 1; } to { scale: 1.22; } }
.hk-edge { position: absolute; top: 40%; padding: 6px 10px; border-radius: 10px; background: rgba(10,10,14,0.7); font-size: 15px; font-weight: 900; opacity: 0; transition: opacity 0.15s; }
.hk-edge.show { opacity: 1; }
.hk-edge.left { left: 8px; } .hk-edge.right { right: 8px; }
.hk-goal { position: absolute; top: 56%; padding: 5px 10px; border-radius: 10px; background: rgba(255,213,74,0.9); color: #1b140c; font-size: 14px; font-weight: 900; opacity: 0; transition: opacity 0.2s; }
.hk-goal.show { opacity: 0.95; }
.hk-goal.left { left: 8px; } .hk-goal.right { right: 8px; }
.hk-edge.yellow { color: #ffe066; } .hk-edge.orange { color: #ff9a3a; } .hk-edge.red { color: #ff5a4a; }
.hk-tag { position: absolute; left: 0; top: 0; translate: -50% -100%; font-size: 12px; font-weight: 900; color: #1b140c; background: #ffd54a; padding: 2px 8px; border-radius: 8px;
  opacity: 0; transition: opacity 0.2s; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,0.4); }
.hk-tag.show { opacity: 0.92; }
.hk-tag i { position: absolute; left: 50%; bottom: -6px; margin-left: -6px; width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 7px solid #ffd54a; }

/* 보인다! (화면 가장자리) */
.hk-vig { position: absolute; inset: 0; opacity: 0; transition: opacity 0.18s;
  background: radial-gradient(ellipse at center, rgba(255,210,60,0) 52%, rgba(255,200,40,0.32) 80%, rgba(255,170,20,0.62)); }
.hk-vig.red { background: radial-gradient(ellipse at center, rgba(255,40,30,0) 45%, rgba(255,40,30,0.38) 75%, rgba(220,0,0,0.75)); }

/* 작은 안내 (아래 가운데) */
.hk-hint { position: absolute; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(8px); max-width: min(92vw, 520px);
  background: rgba(10,10,14,0.75); border: 1px solid rgba(255,213,74,0.35); 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; color: #fff3cf; }
.hk-hint.show { opacity: 1; transform: translateX(-50%) translateY(0); }
body.touch .hk-hint { bottom: calc(232px + env(safe-area-inset-bottom)); font-size: 14px; }
body.hk-on .ods-prompt { font-size: 15px; padding: 7px 14px; border: 1px solid rgba(255,213,74,0.5); top: calc(50% + 46px); }

/* 버튼 글자 */
.ctl-btn small { font-size: 12px; font-weight: 800; }
.ctl-btn.slot-d .ctl-label { font-size: 18px; }
@media (max-height: 520px) { .hk-bubble.big { font-size: 22px; } .hk-alert.red { font-size: 40px; } }
@media (max-width: 480px) { .hk-bubble { font-size: 15px; padding: 6px 11px 7px; } .hk-bubble.big { font-size: 26px; } }
