/* toilet/style.css — 이 게임 전용 HUD (공통은 ../shared/ui.css) */
.ods-title h1 { color: #fff4d6; }

/* 괄약근 게이지 */
.tt-gauge { display: flex; flex-direction: column; gap: 3px; opacity: 0; transform: scale(0.6); transform-origin: left top; transition: opacity 0.3s, transform 0.35s cubic-bezier(.2,1.6,.4,1); }
.tt-gauge.show { opacity: 1; transform: scale(1); }
.tt-glabel { display: flex; justify-content: space-between; align-items: baseline; width: 172px; font-weight: 900; font-size: 14px; text-shadow: 0 1px 2px #000, 0 0 8px rgba(0,0,0,0.6); }
.tt-glabel b { font-size: 16px; font-variant-numeric: tabular-nums; }
.tt-gauge canvas { width: 172px; height: 26px; display: block; border-radius: 13px; box-shadow: 0 0 0 2px rgba(0,0,0,0.35), 0 2px 10px rgba(0,0,0,0.35); }
.tt-gauge.low .tt-glabel { color: #ff8a7a; animation: ttBlink 0.5s infinite alternate; }
.tt-gauge.surge canvas { box-shadow: 0 0 0 2px #ff5b4b, 0 0 16px rgba(255,80,60,0.8); }
.tt-gnote { min-height: 14px; font-size: 12px; font-weight: 800; color: #ffd8a8; text-shadow: 0 1px 2px #000; }
@keyframes ttBlink { to { opacity: 0.55; } }

.chip.tt-paper { color: #ffb4a8; }
.chip.tt-paper.got { color: #b2f2bb; background: rgba(20, 90, 50, 0.7); }

/* 화장실 방향 */
.tt-nav { position: absolute; top: calc(max(12px, env(safe-area-inset-top)) + 4px); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; background: rgba(247, 198, 0, 0.92); color: #141414; padding: 6px 12px 6px 8px; border-radius: 999px; font-weight: 900; font-size: 15px; box-shadow: 0 2px 10px rgba(0,0,0,0.35); white-space: nowrap; }
.tt-wc { background: #141414; color: #f7c600; border-radius: 6px; padding: 2px 5px; font-size: 12px; letter-spacing: 0.04em; }
.tt-arr { display: block; width: 24px; height: 24px; flex: none; }
body.touch .tt-nav { top: calc(max(12px, env(safe-area-inset-top)) + 62px); }

/* 프롬프트 */
.tt-prompt { top: auto; bottom: calc(26px + env(safe-area-inset-bottom)); font-size: 16px; padding: 8px 14px; border: 1px solid rgba(255, 213, 74, 0.5); }
body.touch .tt-prompt { bottom: calc(132px + env(safe-area-inset-bottom)); left: 40%; }
.tt-prompt .k { display: inline-block; background: #ffd54a; color: #141414; border-radius: 6px; padding: 1px 7px; margin-right: 7px; font-size: 13px; }

/* 파도: B 꾹 */
.tt-call { position: absolute; left: 0; right: 0; bottom: 24%; text-align: center; font-size: 34px; font-weight: 900; color: #ffe066; text-shadow: 0 3px 0 #000, 0 0 18px rgba(0,0,0,0.9); animation: ttCall 0.3s infinite alternate; pointer-events: none; }
.tt-call b { display: inline-block; background: #ffe066; color: #141414; border-radius: 12px; padding: 0 12px; margin-right: 8px; text-shadow: none; }
body.touch .tt-call { left: auto; right: calc(14px + env(safe-area-inset-right)); bottom: calc(132px + env(safe-area-inset-bottom)); font-size: 28px; transform-origin: right bottom; }
@keyframes ttCall { from { transform: scale(1); } to { transform: scale(1.08); } }
.ctl-btn.tt-urge { animation: ttUrge 0.3s infinite alternate; border-color: #ffe066; }
@keyframes ttUrge { to { transform: scale(1.13); box-shadow: 0 0 28px rgba(255, 224, 102, 0.9); background: rgba(255, 213, 74, 0.38); } }
.ctl-btn.tt-holding { background: rgba(255, 140, 60, 0.55) !important; border-color: #ffb36b; transform: scale(0.94); }

/* 자막 · 말풍선 */
.tt-sub { position: absolute; left: 50%; bottom: calc(70px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: 92%; text-align: center; background: rgba(10,10,14,0.72); padding: 7px 14px; border-radius: 10px; font-size: 15px; font-weight: 800; opacity: 0; transition: opacity 0.25s; white-space: nowrap; }
.tt-sub.show { opacity: 1; }
body.touch .tt-sub { bottom: auto; top: 36%; }
.tt-bubbles { position: absolute; inset: 0; overflow: hidden; }
.tt-bubble { position: absolute; left: 0; top: 0; background: #fff; color: #141414; font-weight: 900; font-size: 15px; padding: 7px 11px; border-radius: 12px; white-space: nowrap; box-shadow: 0 3px 12px rgba(0,0,0,0.35); }
.tt-bubble::after { content: ''; position: absolute; left: 50%; bottom: -8px; margin-left: -7px; border: 7px solid transparent; border-top-color: #fff; border-bottom: 0; }
.tt-bubble.npc { background: #fff3bf; font-size: 17px; }
.tt-bubble.npc::after { border-top-color: #fff3bf; }
.tt-bubble.think { background: rgba(255,255,255,0.82); font-weight: 700; color: #343a40; }
.tt-bubble.think::after { display: none; }
.tt-bubble.paper { background: #fbfaf5; color: #c92a2a; }
.tt-bubble.paper::after { border-top-color: #fbfaf5; }

/* 화면 출렁 · 하얘짐 */
.tt-slosh { position: fixed; inset: -6%; pointer-events: none; z-index: 1; opacity: 0; background: radial-gradient(ellipse at center, rgba(60,30,10,0) 34%, rgba(74,38,10,0.5) 56%, rgba(46,20,4,0.96) 86%); will-change: opacity, transform; }
.tt-white { position: fixed; inset: 0; background: #fffdf6; opacity: 0; pointer-events: none; z-index: 5; }
canvas.game { will-change: transform; transform-origin: 50% 50%; }
.ods-msg.tt-signal { top: 17%; font-size: 40px; letter-spacing: 0.04em; color: #fff4d6; animation: ttSignal 0.6s ease-out; }
.ods-msg.tt-saved { font-size: 50px; color: #ffcf3f; text-shadow: 0 3px 0 #4a3000, 0 0 3px #4a3000, 0 0 22px rgba(80, 50, 0, 0.55); }
@keyframes ttSignal { 0% { transform: scale(1.5); filter: blur(6px); opacity: 0; } 100% { transform: scale(1); filter: blur(0); opacity: 1; } }
