/* conv-crush/style.css — 추리닝 쌩얼, 편의점에서 짝사랑을 만났다 전용 화면 요소 (공통 ui.css 위에 덧씌움) */

/* 들킴 게이지 */
.cc-sus { display: flex; flex-direction: column; gap: 3px; width: 128px; font-size: 12px; font-weight: 800; text-shadow: 0 1px 2px #000; }
.cc-sus .row { display: flex; justify-content: space-between; align-items: baseline; }
.cc-sus .track { width: 100%; height: 10px; border-radius: 10px; background: rgba(255,255,255,0.16); overflow: hidden; border: 1px solid rgba(0,0,0,0.35); }
.cc-sus .track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffb3d1, #ff6fa8); transition: width 0.12s; }
.cc-sus b { font-size: 13px; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .cc-sus { width: 112px; } .cc-items i { font-size: 10px; padding: 2px 6px; } }
.cc-sus.mid .track i { background: linear-gradient(90deg, #ff9a6a, #ff5f3a); }
.cc-sus.hi .track i { background: linear-gradient(90deg, #ff5a4a, #ff1f3f); }
.cc-sus.hi { animation: odsPulse 0.35s infinite alternate; color: #ffb3c0; }

/* 장보기 목록 */
.cc-items { display: flex; gap: 4px; flex-wrap: wrap; }
.cc-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); }
.cc-items i.got { background: rgba(255,213,74,0.22); color: #ffe9a8; border-color: rgba(255,213,74,0.5); }
.cc-items i.paid, .cc-items i[data-k="pay"].got { background: rgba(127,224,138,0.25); color: #c9f7cf; border-color: rgba(127,224,138,0.5); }
.cc-items i.got::before { content: '✓ '; }

/* 남은 시간 */
.cc-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; }
.cc-time small { font-size: 11px; color: #cfc5ad; margin-right: 4px; }
.cc-time b { font-size: 26px; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.cc-time.low { background: rgba(160,20,60,0.75); animation: odsPulse 0.5s infinite alternate; }
.cc-time.low b { color: #ffe066; }

/* 3D 위에 띄우는 것들 */
.cc-layer { position: fixed; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.cc-bubble { position: absolute; left: 0; top: 0; max-width: min(86vw, 380px); padding: 7px 13px 8px; border-radius: 16px; background: #fff3f8; color: #2a0f1c;
  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 #2a0f1c; }
.cc-bubble.show { opacity: 1; }
.cc-bubble em { display: block; font-style: normal; font-size: 10px; font-weight: 800; color: #b0306a; letter-spacing: 0.04em; margin-bottom: 1px; }
.cc-bubble.big { font-size: 30px; padding: 9px 18px 11px; background: #ffd1e6; border-width: 3px; }
.cc-bubble.dock { translate: -50% 0; }
.cc-bubble.clerk { background: #e6f7ec; color: #0e2a17; border-color: #0e2a17; font-size: 15px; }
.cc-bubble.clerk em { color: #1f7a45; }
.cc-bubble.cust { background: #eef0f3; color: #1b1e24; border-color: #1b1e24; font-size: 14px; }
.cc-bubble.cust em { color: #5a6270; }
.cc-me { position: absolute; left: 50%; bottom: 27%; 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; }
.cc-me.show { opacity: 1; }
body.touch .cc-me { bottom: 37%; font-size: 16px; }
.cc-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); }
.cc-alert.show { opacity: 1; }
.cc-alert.yellow { color: #ffd0e4; font-size: 30px; }
.cc-alert.orange { color: #ff9a3a; }
.cc-alert.red { color: #ff3b4f; font-size: 54px; animation: ccBeat 0.35s infinite alternate; }
@keyframes ccBeat { from { scale: 1; } to { scale: 1.22; } }
.cc-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; }
.cc-edge.show { opacity: 1; }
.cc-edge.left { left: 8px; } .cc-edge.right { right: 8px; }
.cc-edge.yellow { color: #ffd0e4; } .cc-edge.orange { color: #ff9a3a; } .cc-edge.red { color: #ff5a6a; }
.cc-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; }
.cc-goal.show { opacity: 0.95; }
.cc-goal.left { left: 8px; } .cc-goal.right { right: 8px; }
.cc-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); }
.cc-tag.show { opacity: 0.92; }
.cc-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; }
/* 거울로 확인한 걔 위치 */
.cc-reveal { position: absolute; left: 0; top: 0; translate: -50% -100%; font-size: 14px; font-weight: 900; color: #fff; background: #ff4f96; padding: 3px 10px; border-radius: 10px;
  opacity: 0; transition: opacity 0.2s; white-space: nowrap; box-shadow: 0 0 0 2px #fff, 0 3px 10px rgba(0,0,0,0.5); }
.cc-reveal.show { opacity: 0.95; animation: ccBlink 0.6s infinite alternate; }
.cc-reveal i { position: absolute; left: 50%; bottom: -7px; margin-left: -6px; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 7px solid #ff4f96; }
.cc-reveal.edge { translate: -50% -50%; } .cc-reveal.edge i { display: none; }
@keyframes ccBlink { from { opacity: 0.95; } to { opacity: 0.6; } }

/* 보인다! (분홍 가장자리) · 눈 마주침 */
.cc-vig { position: absolute; inset: 0; opacity: 0; transition: opacity 0.18s;
  background: radial-gradient(ellipse at center, rgba(255,95,162,0) 52%, rgba(255,95,162,0.32) 80%, rgba(255,60,140,0.6)); }
.cc-vig.red { background: radial-gradient(ellipse at center, rgba(255,40,60,0) 45%, rgba(255,40,60,0.38) 75%, rgba(220,0,40,0.75)); }
.cc-eye { position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%) scale(0.9); font-size: 34px; font-weight: 900; color: #fff; background: #ff2f5f; padding: 6px 18px; border-radius: 14px;
  border: 3px solid #fff; opacity: 0; transition: opacity 0.12s, transform 0.12s; text-shadow: 0 2px 0 rgba(0,0,0,0.4); }
.cc-eye.show { opacity: 1; transform: translate(-50%, -50%) scale(1); animation: ccBeat 0.3s infinite alternate; }
/* 모자 푹: 화면 위가 어두워짐 */
.cc-cap { position: absolute; left: 0; right: 0; top: 0; height: 34%; opacity: 0; transition: opacity 0.15s;
  background: linear-gradient(180deg, rgba(8,10,20,0.55), rgba(8,10,20,0)); }
.cc-cap span { position: absolute; left: 50%; top: calc(8px + env(safe-area-inset-top)); transform: translateX(-50%); font-size: 11px; font-weight: 900; color: #c9d2ff; letter-spacing: 0.08em; opacity: 0.8; }
body.touch .cc-cap span { top: calc(64px + env(safe-area-inset-top)); }
.cc-cap.show { opacity: 1; }
/* 헉 */
.cc-heok { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%) scale(0.6) rotate(-6deg); font-size: 120px; font-weight: 900; color: #ffe14d;
  text-shadow: 0 6px 0 #1b0a12, 0 0 30px rgba(255,80,150,0.8); -webkit-text-stroke: 4px #1b0a12; opacity: 0; transition: opacity 0.08s, transform 0.18s cubic-bezier(.2,1.6,.4,1); }
.cc-heok.show { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-6deg); }
/* 폰 알림 */
.cc-toast { position: absolute; left: 50%; top: calc(214px + env(safe-area-inset-top)); transform: translateX(-50%) translateY(-8px); max-width: min(88vw, 360px); background: rgba(250,250,252,0.96); color: #15161a;
  border-radius: 14px; padding: 8px 14px; font-size: 14px; font-weight: 800; box-shadow: 0 6px 18px rgba(0,0,0,0.45); opacity: 0; transition: opacity 0.2s, transform 0.2s; white-space: nowrap; }
.cc-toast b { display: block; font-size: 10px; color: #6a6f7a; letter-spacing: 0.04em; }
.cc-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
/* 작은 안내 (아래 가운데) */
.cc-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,140,190,0.4); 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: #ffe6f0; }
.cc-hint.show { opacity: 1; transform: translateX(-50%) translateY(0); }
body.touch .cc-hint { bottom: calc(232px + env(safe-area-inset-bottom)); font-size: 14px; }
body.cc-on .ods-prompt { font-size: 15px; padding: 7px 14px; border: 1px solid rgba(255,213,74,0.5); top: calc(50% + 46px); }
/* 셀프 계산 바코드 */
.cc-scan { position: absolute; left: 50%; top: 58%; transform: translate(-50%, -50%); width: min(82vw, 340px); background: rgba(12,16,26,0.88); border: 2px solid rgba(160,220,255,0.5); border-radius: 16px;
  padding: 10px 14px 12px; opacity: 0; transition: opacity 0.15s; text-align: center; }
.cc-scan.show { opacity: 1; }
.cc-scan p { margin: 0 0 8px; font-size: 13px; font-weight: 800; color: #dff1ff; }
.cc-scan .bar { position: relative; height: 54px; border-radius: 8px; background: #f4f4f0; overflow: hidden; }
.cc-scan .code { position: absolute; left: 36%; width: 28%; top: 8px; bottom: 8px;
  background: repeating-linear-gradient(90deg, #111 0 3px, #f4f4f0 3px 5px, #111 5px 6px, #f4f4f0 6px 9px, #111 9px 13px, #f4f4f0 13px 15px); outline: 3px solid rgba(60,200,120,0.6); outline-offset: 3px; }
.cc-scan .laser { position: absolute; top: 0; bottom: 0; width: 4px; margin-left: -2px; background: #ff2a2a; box-shadow: 0 0 10px 3px rgba(255,40,40,0.8); left: 0; }
.cc-scan.ok .bar { box-shadow: 0 0 0 4px #3bd16f; }
.cc-scan.bad .bar { box-shadow: 0 0 0 4px #ff3b3b; animation: ccShake 0.08s 3; }
@keyframes ccShake { 0% { transform: translateX(-4px); } 50% { transform: translateX(4px); } 100% { transform: translateX(0); } }
.cc-scan .dots { display: flex; justify-content: center; gap: 8px; margin-top: 8px; }
.cc-scan .dots i { width: 12px; height: 12px; border-radius: 50%; background: rgba(255,255,255,0.2); border: 2px solid rgba(255,255,255,0.45); }
.cc-scan .dots i.on { background: #3bd16f; border-color: #c9f7cf; }
body.touch .cc-scan { top: 48%; }

/* 버튼 글자 */
.ctl-btn small { font-size: 12px; font-weight: 800; }
.ctl-btn.slot-d .ctl-label { font-size: 18px; }
.ctl-btn.slot-c { background: rgba(255, 90, 140, 0.35); border-color: rgba(255, 160, 200, 0.85); animation: odsBreath 0.6s infinite alternate; }
@media (max-height: 520px) { .cc-bubble.big { font-size: 22px; } .cc-alert.red { font-size: 40px; } .cc-heok { font-size: 84px; } }
@media (max-width: 480px) { .cc-bubble { font-size: 15px; padding: 6px 11px 7px; } .cc-bubble.big { font-size: 24px; } .cc-heok { font-size: 96px; } }
