/* toilet-clog/style.css — 썸 타는 집 화장실 전용 화면 요소 (공통 ui.css 위에 덧씌움) */

.tc-layer { position: fixed; inset: 0; pointer-events: none; z-index: 2; }
.tc-black { position: fixed; inset: 0; pointer-events: none; z-index: 6; opacity: 0; background: #000; }
.tc-vig { position: absolute; inset: 0; opacity: 0; transition: opacity 0.25s; background: radial-gradient(ellipse at center, rgba(120,200,255,0) 52%, rgba(90,170,255,0.32) 86%, rgba(60,140,255,0.55)); }
.tc-vig.red { background: radial-gradient(ellipse at center, rgba(255,60,40,0) 48%, rgba(255,60,40,0.42) 84%, rgba(200,10,0,0.7)); }

/* 첫 장면 큰 글자 (헉 · “커피 마실래~?”) */
.tc-big { position: absolute; left: 0; right: 0; top: 30%; text-align: center; font-size: clamp(48px, 13vw, 96px); font-weight: 900; color: #fff; letter-spacing: -0.02em;
  text-shadow: 0 4px 0 #000, 0 0 40px rgba(0,0,0,0.95); opacity: 0; transform: scale(1.25); transition: opacity 0.08s, transform 0.25s cubic-bezier(.2,1.6,.4,1); word-break: keep-all; padding: 0 12px; }
.tc-big.show { opacity: 1; transform: scale(1); }
.tc-big.heok { font-size: clamp(110px, 34vw, 210px); color: #ffd54a; top: 22%; text-shadow: 0 6px 0 #000, 0 0 50px rgba(0,0,0,0.9), 0 0 90px rgba(255,120,40,0.5); animation: tcShake 0.06s 6; }
.tc-big.voice { color: #ffe0ee; font-size: clamp(38px, 10.5vw, 76px); text-shadow: 0 4px 0 #000, 0 0 30px rgba(0,0,0,0.95), 0 0 60px rgba(255,90,160,0.45); }
@keyframes tcShake { 50% { transform: translate(5px, -4px) rotate(-2deg); } }
.tc-think { position: absolute; left: 0; right: 0; top: 63%; text-align: center; font-size: clamp(22px, 6vw, 32px); font-weight: 800; font-style: italic; color: #e8e2d4;
  text-shadow: 0 2px 0 #000, 0 0 18px rgba(0,0,0,0.9); opacity: 0; transition: opacity 0.3s; word-break: keep-all; padding: 0 16px; }
.tc-think.show { opacity: 1; }

/* 자막 (썸 · 나) */
.tc-sub { position: absolute; left: 50%; top: calc(max(14px, env(safe-area-inset-top)) + 54px); transform: translateX(-50%) translateY(-6px); max-width: min(92vw, 560px); width: max-content;
  background: rgba(8,8,10,0.8); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 8px 14px; font-size: 18px; font-weight: 800; line-height: 1.38; text-align: center;
  word-break: keep-all; color: #fff; opacity: 0; transition: opacity 0.2s, transform 0.2s; }
.tc-sub.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.tc-sub i { font-style: normal; display: inline-block; font-size: 12px; font-weight: 900; border-radius: 6px; padding: 1px 7px; margin-right: 7px; vertical-align: 2px; background: rgba(255,255,255,0.18); }
.tc-sub.crush { color: #ffe2ef; }
.tc-sub.crush i { background: #e0508e; color: #fff; }
.tc-sub.me i { background: #4a7ad8; color: #fff; }
@media (max-width: 480px) { .tc-sub { font-size: 16px; top: calc(max(12px, env(safe-area-inset-top)) + 128px); } }

/* 게이지 (수위 · 의심) + 표정 */
.tc-gauges { display: flex; align-items: center; gap: 8px; background: rgba(10,10,14,0.55); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 6px 10px 6px 6px; }
.tc-face { width: 48px; height: 48px; image-rendering: pixelated; border-radius: 10px; background: rgba(255,255,255,0.06); }
.tc-bars { display: grid; gap: 5px; }
.tc-bar { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; text-shadow: 0 1px 2px #000; }
.tc-bar span { min-width: 28px; }
.tc-bar b { font-size: 12px; min-width: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.tc-bar .track { position: relative; width: 112px; height: 10px; border-radius: 10px; background: rgba(255,255,255,0.14); overflow: hidden; }
.tc-bar .track i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; transition: width 0.12s; }
.tc-lv .track i { background: linear-gradient(90deg, #6fc6ff, #4aa8ff); }
.tc-lv.mid .track i { background: linear-gradient(90deg, #ffd24a, #ff9a3a); }
.tc-lv.hi .track i { background: linear-gradient(90deg, #ff6a3a, #ff2a1a); }
.tc-lv.hi span, .tc-lv.hi b { color: #ff7a6a; }
.tc-lv.rise .track { box-shadow: 0 0 0 1px rgba(111,198,255,0.5); animation: tcRise 0.9s infinite alternate; }
@keyframes tcRise { to { box-shadow: 0 0 0 2px rgba(111,198,255,0.15); } }
.tc-lv .track em.m60 { position: absolute; left: 60%; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,0.55); }
.tc-sus .track i { background: linear-gradient(90deg, #ffb0d0, #ff7ab0); }
.tc-sus.mid .track i { background: linear-gradient(90deg, #ffd24a, #ff9a3a); }
.tc-sus.hi .track i { background: linear-gradient(90deg, #ff6a3a, #ff2a1a); }
.tc-sus .track em { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(0,0,0,0.5); }
.tc-sus .track em.s1 { left: 34%; } .tc-sus .track em.s2 { left: 67%; }
.tc-sus .pips { display: flex; gap: 3px; justify-content: flex-end; }
.tc-sus .pips u { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.18); text-decoration: none; }
.tc-sus .pips u.on { background: #ff5a6a; box-shadow: 0 0 6px rgba(255,80,100,0.8); }
.tc-goals { display: flex; gap: 5px; flex-wrap: wrap; max-width: 260px; }
.tc-goals i { font-style: normal; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: rgba(10,10,14,0.6); border: 1px solid rgba(255,255,255,0.12); color: #cfc5ad; }
.tc-goals i::before { content: '□ '; }
.tc-goals i.got { color: #8ff09c; border-color: rgba(127,224,138,0.5); }
.tc-goals i.got::before { content: '✓ '; }
.tc-time, .tc-item, .tc-soak { font-size: 13px; padding: 5px 10px; }
.tc-time.warn { background: rgba(160,20,20,0.7); }
.tc-item { background: rgba(200,60,110,0.55); }
.tc-soak { background: rgba(40,120,200,0.6); }
.chip.hide { display: none; }

/* 뚫기 박자 */
.tc-rh { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 6px; }
.tc-rh.hide { display: none; }
.tc-rh .ring { position: relative; width: 120px; height: 120px; }
.tc-rh .ring i { position: absolute; left: 50%; top: 50%; border-radius: 50%; }
.tc-rh .ring i.tgt { width: 60px; height: 60px; transform: translate(-50%,-50%); border: 4px solid rgba(255,255,255,0.85); box-shadow: 0 0 0 2px rgba(0,0,0,0.5); }
.tc-rh .ring i.mov { width: 60px; height: 60px; border: 3px solid rgba(255,213,74,0.9); transform: translate(-50%,-50%) scale(2); }
.tc-rh .ring b { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-size: 18px; font-weight: 900; color: #fff; text-shadow: 0 2px 0 #000; }
.tc-rh .ring.win i.tgt { border-color: #ffd54a; box-shadow: 0 0 12px rgba(255,213,74,0.9); }
.tc-rh .ring.good i.tgt { border-color: #7fe08a; box-shadow: 0 0 16px rgba(127,224,138,1); }
.tc-rh .ring.miss i.tgt { border-color: #ff5d5d; box-shadow: 0 0 16px rgba(255,93,93,1); }
.tc-rh .dots { display: flex; gap: 6px; }
.tc-rh .dots u { width: 14px; height: 14px; border-radius: 50%; background: rgba(255,255,255,0.2); border: 2px solid rgba(255,255,255,0.4); text-decoration: none; }
.tc-rh .dots u.on { background: #7fe08a; border-color: #b8ffbf; }
.tc-rh small { font-size: 11px; font-weight: 800; color: #e8dfca; text-shadow: 0 1px 2px #000; background: rgba(0,0,0,0.45); padding: 2px 8px; border-radius: 8px; }

/* 작은 안내 (아래 가운데) */
.tc-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,10,14,0.78); 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; }
.tc-hint.show { opacity: 1; transform: translateX(-50%) translateY(0); }
body.touch .tc-hint { bottom: calc(232px + env(safe-area-inset-bottom)); font-size: 14px; }
body.tc-on .ods-prompt { font-size: 15px; padding: 7px 14px; border: 1px solid rgba(255,213,74,0.45); max-width: 88vw; white-space: normal; text-align: center; word-break: keep-all; }
body.tc-on .ods-msg { word-break: keep-all; }
@media (max-width: 480px) {
  body.tc-on .ods-msg.scream { font-size: 40px; }
  body.tc-on .ods-msg { font-size: 34px; }
  .tc-bar .track { width: 86px; }
  .tc-face { width: 42px; height: 42px; }
  .tc-time, .tc-item, .tc-soak { font-size: 12px; padding: 4px 9px; }
  .tc-goals { max-width: 200px; }
}
body.tc-on .ctl-btn small { font-size: 11px; font-weight: 800; max-width: 86px; white-space: normal; text-align: center; line-height: 1.15; }
body.tc-on .ctl-btn.slot-a.disabled { opacity: 0.45; }
body.tc-on .ctl-btn.slot-b .ctl-label { font-size: 19px; color: #9fd8ff; }
body.tc-on .ctl-btn.slot-d .ctl-label { font-size: 17px; }

/* 가상 상황 표시 */
.tc-tag { position: fixed; left: 50%; bottom: calc(6px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 2; pointer-events: none; font-size: 10px; color: rgba(255,255,255,0.42); display: none; white-space: nowrap; }
body.tc-on.tc-played .tc-tag { display: block; }

/* 결과: 썸 상대 반응 · 체크리스트 */
.tc-extra { text-align: left; margin: 10px 0 8px; display: grid; gap: 8px; }
.tc-extra .h { font-size: 12px; font-weight: 800; color: #a59a83; margin-bottom: 4px; letter-spacing: 0.04em; }
.tc-react { padding: 10px 12px; border-radius: 14px; background: linear-gradient(135deg, rgba(255,120,180,0.16), rgba(255,255,255,0.03)); border: 1px solid rgba(255,120,180,0.35); }
.tc-react b { display: block; font-size: 17px; color: #ffd0e4; word-break: keep-all; }
.tc-check { padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.07); }
.tc-check ul { list-style: none; display: grid; gap: 4px; padding: 0; margin: 0; }
.tc-check li { display: grid; grid-template-columns: 52px 1fr; gap: 8px; align-items: start; font-size: 13px; line-height: 1.35; }
.tc-check li b { font-size: 11px; font-weight: 900; text-align: center; border-radius: 6px; padding: 2px 0; margin-top: 1px; }
.tc-check li.ok b { background: rgba(127,224,138,0.2); color: #8ff09c; }
.tc-check li.mid b { background: rgba(255,200,80,0.2); color: #ffd47a; }
.tc-check li.miss b { background: rgba(255,93,93,0.18); color: #ff8a80; }
.tc-check li i { font-style: normal; font-size: 11px; color: #8f8a7e; margin-left: 4px; }
.tc-check li small { display: block; font-size: 11px; color: #b9a58a; word-break: keep-all; }
.tc-src { font-size: 10.5px; color: #8f8a7e; margin-top: 6px; word-break: keep-all; }
