/* pepero/style.css — 빼빼로를 몰래 넣어라 전용 화면 요소 (공통 ui.css 위에 덧씌움) */

/* 목격 게이지 */
.pp-gauge { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; text-shadow: 0 1px 2px #000; }
.pp-gauge .track { position: relative; 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); }
.pp-gauge .track i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ffe066, #ffc23a); transition: width 0.1s; }
.pp-gauge .track em { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: rgba(255,255,255,0.75); left: 0; }
.pp-gauge b { font-size: 13px; min-width: 36px; font-variant-numeric: tabular-nums; }
.pp-gauge.mid .track i { background: linear-gradient(90deg, #ffb13a, #ff7a2f); }
.pp-gauge.hi .track i { background: linear-gradient(90deg, #ff6a8a, #ff2f4f); }
.pp-gauge.hi { animation: odsPulse 0.35s infinite alternate; color: #ffc0cc; }
.pp-gauge.seen span { color: #ffe066; }

/* 목표 · 상자 상태 */
.pp-goals { display: flex; gap: 4px; }
.pp-goals 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); }
.pp-goals i.got { background: rgba(255,140,180,0.28); color: #ffd6e4; border-color: rgba(255,150,190,0.55); }
.pp-goals i.got::before { content: '✓ '; }
.pp-goals i.next { background: rgba(255,213,74,0.25); color: #ffeaa0; border-color: rgba(255,213,74,0.6); }
.pp-box { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 8px; background: rgba(10,10,14,0.6); border: 1px solid rgba(255,255,255,0.12); color: #e8e2d0; }
.pp-box.out { color: #ffe9a8; border-color: rgba(255,213,74,0.45); }
.pp-box.hid { color: #b9e6ff; border-color: rgba(140,200,255,0.5); }
.pp-box.done { color: #ffd6e4; border-color: rgba(255,150,190,0.55); }

/* 시계 · 그 애 등교 */
.pp-clock { display: flex; flex-direction: column; align-items: flex-end; 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; line-height: 1.05; }
.pp-clock b { font-size: 26px; font-variant-numeric: tabular-nums; color: #fff; }
.pp-clock small { font-size: 10px; color: #cfc5ad; margin-top: 2px; }
.pp-clock.low { background: rgba(160,20,20,0.75); animation: odsPulse 0.5s infinite alternate; }
.pp-clock.low b { color: #ffe066; }
.pp-crush { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 8px; background: rgba(10,10,14,0.6); color: #ffc6d9; border: 1px solid rgba(255,150,190,0.35); }
.pp-crush.in { background: rgba(230,70,120,0.75); color: #fff; animation: odsPulse 0.6s 4 alternate; }

/* 3D 위에 띄우는 것들 */
.pp-layer { position: fixed; inset: 0; pointer-events: none; z-index: 2; overflow: hidden; }
.pp-bub { position: absolute; left: 0; top: 0; max-width: min(80vw, 330px); padding: 6px 12px 7px; border-radius: 15px; background: #fffaf0; color: #1b140c;
  font-size: 16px; font-weight: 900; line-height: 1.25; text-align: center; word-break: keep-all; width: max-content; box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  opacity: 0; translate: -50% -100%; transition: opacity 0.15s; border: 2px solid #1b140c; }
.pp-bub.show { opacity: 1; }
.pp-bub em { display: block; font-style: normal; font-size: 10px; font-weight: 800; color: #8a6a3a; margin-bottom: 1px; }
.pp-bub.crush { background: #ffe3ee; border-color: #8a2a4a; }
.pp-bub.crush em { color: #c0407a; }
.pp-bub.teacher { background: #e8f1ff; }
.pp-bub.dock { translate: -50% 0; }
.pp-alert { position: absolute; left: 0; top: 0; translate: -50% -100%; font-size: 34px; font-weight: 900; line-height: 1; opacity: 0; text-shadow: 0 3px 0 #000, 0 0 12px rgba(0,0,0,0.8); }
.pp-alert.show { opacity: 1; }
.pp-alert.yellow { color: #ffe066; font-size: 28px; }
.pp-alert.orange { color: #ff9a3a; }
.pp-alert.red { color: #ff3b5c; font-size: 46px; animation: ppBeat 0.35s infinite alternate; }
@keyframes ppBeat { from { scale: 1; } to { scale: 1.22; } }
.pp-edge { position: absolute; top: 40%; padding: 6px 10px; border-radius: 10px; background: rgba(10,10,14,0.72); font-size: 14px; font-weight: 900; opacity: 0; transition: opacity 0.15s; }
.pp-edge.show { opacity: 1; }
.pp-edge.left { left: 8px; } .pp-edge.right { right: 8px; }
.pp-edge.yellow { color: #ffe066; } .pp-edge.red { color: #ff5a7a; }
.pp-arrow { position: absolute; top: 56%; padding: 5px 10px; border-radius: 10px; background: rgba(255,170,200,0.92); color: #3a0f20; font-size: 14px; font-weight: 900; opacity: 0; transition: opacity 0.2s; }
.pp-arrow.show { opacity: 0.95; }
.pp-arrow.left { left: 8px; } .pp-arrow.right { right: 8px; }
.pp-tag { position: absolute; left: 0; top: 0; translate: -50% -100%; font-size: 12px; font-weight: 900; 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); }
.pp-tag.show { opacity: 0.93; }
.pp-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 currentColor; }
.pp-tag.crush { background: #ff8fb6; color: #3a0f20; }
.pp-tag.crush i { border-top-color: #ff8fb6; }
.pp-tag.me { background: #9fd3ff; color: #0f2236; }
.pp-tag.me i { border-top-color: #9fd3ff; }
.pp-tag.sub { background: rgba(255,255,255,0.85); color: #1b140c; font-size: 11px; }
.pp-tag.sub i { border-top-color: rgba(255,255,255,0.85); }

/* 보인다! · 귀까지 빨개짐 */
.pp-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.3) 80%, rgba(255,170,20,0.6)); }
.pp-vig.red { background: radial-gradient(ellipse at center, rgba(255,40,90,0) 45%, rgba(255,40,90,0.36) 75%, rgba(220,0,60,0.72)); }
.pp-blush { position: absolute; inset: 0; opacity: 0; background: radial-gradient(ellipse at center, rgba(255,120,150,0.05) 30%, rgba(255,70,110,0.45) 80%, rgba(230,30,80,0.7)); }

/* 속마음 · 큰 글자 */
.pp-think { position: absolute; left: 50%; bottom: 27%; transform: translateX(-50%); font-size: 19px; font-weight: 800; font-style: italic; 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; }
.pp-think.show { opacity: 1; }
body.touch .pp-think { bottom: 38%; }
.pp-big { position: absolute; left: 0; right: 0; top: 26%; text-align: center; font-size: 64px; font-weight: 900; opacity: 0; transform: scale(0.85); transition: opacity 0.12s, transform 0.12s;
  text-shadow: 0 4px 0 #000, 0 0 26px rgba(0,0,0,0.9); line-height: 1.1; padding: 0 12px; }
.pp-big.show { opacity: 1; transform: scale(1); }
.pp-big.heok { color: #ff3b2f; font-size: 84px; animation: odsShake 0.08s infinite; }
.pp-big.ooh { color: #ffd54a; font-size: 58px; }
.pp-big.pink { color: #ff9cc0; font-size: 44px; }

/* 꾹 누르기 진행 */
.pp-hold { position: absolute; left: 50%; top: calc(50% - 26px); transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; }
.pp-hold.hide { display: none; }
.pp-hold .ring { width: 52px; height: 52px; border-radius: 50%; background: rgba(10,10,14,0.45); padding: 5px; box-sizing: border-box; }
.pp-hold .ring i { --k: 0; display: block; width: 100%; height: 100%; border-radius: 50%;
  background: conic-gradient(#ff8fb6 calc(var(--k) * 360deg), rgba(255,255,255,0.18) 0); -webkit-mask: radial-gradient(circle, transparent 55%, #000 57%); mask: radial-gradient(circle, transparent 55%, #000 57%); }
.pp-hold b { font-size: 13px; font-weight: 900; text-shadow: 0 1px 3px #000; color: #ffd6e4; }

/* 작은 안내 (아래 가운데) */
.pp-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.78); border: 1px solid rgba(255,150,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: #fff0f5; }
.pp-hint.show { opacity: 1; transform: translateX(-50%) translateY(0); }
body.touch .pp-hint { bottom: calc(232px + env(safe-area-inset-bottom)); font-size: 14px; }
body.pp-on .ods-prompt { font-size: 15px; padding: 7px 14px; border: 1px solid rgba(255,150,190,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-width: 480px) { .pp-bub { font-size: 14px; padding: 5px 10px 6px; } .pp-big.heok { font-size: 72px; } .pp-gauge .track { width: 104px; } }
