/* GLITCH 로맨스 축 (v13) — 두 사람의 심박과 서연에게 직접 쓰기. js/glitch-romance.js */
.grPulse{--gr-calm:#3ddc84;--gr-happy:#9dff6a;--gr-love:#ff5fa8;--gr-hurt:#ff5a5a;--gr-angry:#ff2b3a;--gr-nervous:#ff8a4c;--gr-off:#5d7480;
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 12px;padding:6px 8px;border:1px solid #2b4b58;border-radius:12px;background:#06141b;color:#e0edf2}
.grHeart{display:grid;grid-template-columns:14px auto minmax(28px,1fr) auto;align-items:center;gap:5px;min-width:0;color:var(--gr-calm);font:11px/1.2 system-ui,sans-serif}
.grMood-happy{color:var(--gr-happy)}.grMood-love{color:var(--gr-love)}.grMood-hurt{color:var(--gr-hurt)}.grMood-angry{color:var(--gr-angry)}.grMood-nervous{color:var(--gr-nervous)}.grMood-nosignal{color:var(--gr-off)}
.grIcon{display:block;width:14px;height:14px;animation:grBeat var(--beat) ease-out infinite}
.grIcon svg{width:100%;height:100%;fill:currentColor;filter:drop-shadow(0 0 3px currentColor)}
.grWho{color:#cfe3ea;font-weight:600;white-space:nowrap}
.grLine{display:block;height:18px;overflow:hidden;border-radius:4px;background:#0006}
.grLine svg{display:block;width:100%;height:100%}
.grLine path{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.grBase{opacity:.18}
.grTrace{stroke-dasharray:100;stroke-dashoffset:100;opacity:0;filter:drop-shadow(0 0 2px currentColor);animation:grTrace var(--beat) linear infinite}
.grLabel{white-space:nowrap;opacity:.85;font-size:10px}
.grMood-hurt .grIcon,.grMood-hurt .grTrace{animation-timing-function:cubic-bezier(.7,0,.3,1)}
.grMood-nosignal .grIcon{animation:none}.grMood-nosignal .grIcon svg{filter:none;opacity:.6}
/* 심장이 뛰는 순간 파형이 그려지고(0→30%), 잠깐 남았다가 흐려진다 */
@keyframes grTrace{0%{stroke-dashoffset:100;opacity:1}30%{stroke-dashoffset:0;opacity:1}55%{opacity:.9}85%,100%{stroke-dashoffset:0;opacity:0}}
@keyframes grBeat{0%{transform:scale(1)}8%{transform:scale(1.3)}18%{transform:scale(.95)}28%,100%{transform:scale(1)}}
.grSuggest{display:grid;gap:7px;margin-top:2px}.grPick{border-color:#ff8fc166}
.grExamples{margin-top:12px;border-top:1px dashed #23414d;padding-top:8px}.grExamples summary{cursor:pointer;color:#a6c2cd;font-size:12px}.grExamples .gpReplies{margin-top:8px}
.grComposer{display:grid;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid #23414d}
.grForm{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}
.grForm textarea{box-sizing:border-box;width:100%;min-height:44px;resize:vertical;padding:9px 11px;border:1px solid #3c6271;border-radius:12px;background:#06131a;color:#e0edf2;font:14px/1.5 system-ui,sans-serif}
.grForm textarea:focus-visible{outline:2px solid #ff5fa8;outline-offset:1px}
.grTyping{margin:0;color:#ff8fc1;font-size:13px;animation:grBlink 1.2s ease-in-out infinite}
.grCost{margin:0;color:#8aa6b1;font-size:12px}
.grFeel{margin:0;color:#ff9cc9;font-size:12px;font-style:italic}
.grUndelivered{opacity:.6}.grUndelivered::after{content:'전송되지 않음';display:block;margin-top:4px;color:#ff8a4c;font-size:11px}
.grChatOpen{flex:1 1 100%}
@keyframes grBlink{50%{opacity:.45}}
@media (prefers-reduced-motion:reduce){.grIcon,.grTyping{animation:none!important}.grTrace{animation:none!important;opacity:1;stroke-dashoffset:0}}
@media (max-width:360px){.grLabel{display:none}}
.grHeart.grInline{display:inline-grid;grid-template-columns:14px 46px auto;gap:5px;align-self:center;padding:4px 8px;border:1px solid #2b4b58;border-radius:999px;background:#06141b;--gr-calm:#3ddc84;--gr-happy:#9dff6a;--gr-love:#ff5fa8;--gr-hurt:#ff5a5a;--gr-angry:#ff2b3a;--gr-nervous:#ff8a4c;--gr-off:#5d7480}
.grHeart.grInline .grLine{height:16px}
.gpContacts{align-items:center}
