.hopechan-panel{z-index:1001;background:linear-gradient(#faf5ff 0%,#fff 40% 100%);border-left:1px solid #ede9fe;flex-direction:column;width:420px;height:100dvh;display:flex;position:fixed;top:0;right:0;overflow:hidden;box-shadow:-4px 0 24px #8b5cf61a}.hopechan-header{background:#fff;border-bottom:2px solid #0000;border-image:linear-gradient(90deg,#ec4899,#8b5cf6,#3b82f6) 1;flex-shrink:0;justify-content:space-between;align-items:center;padding:14px 16px 12px;display:flex}.hopechan-header-title{background:linear-gradient(135deg,#ec4899,#8b5cf6);-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text;font-size:15px;font-weight:600}.hopechan-header-subtitle{color:#9ca3af;margin-top:2px;font-size:12px}.hopechan-close-btn{color:#9ca3af;cursor:pointer;background:0 0;border:none;border-radius:6px;padding:4px 6px;font-size:16px;line-height:1;transition:all .15s}.hopechan-close-btn:hover{color:#374151;background:#f3f4f6}.hopechan-character{flex-shrink:0;justify-content:center;align-items:flex-end;padding:12px 0 4px;display:flex;position:relative}.hopechan-character:before{content:"";pointer-events:none;background:radial-gradient(circle,#8b5cf614 0%,#ec48990a 50%,#0000 70%);border-radius:50%;width:200px;height:200px;position:absolute;bottom:20px;left:50%;transform:translate(-50%)}.hopechan-img{object-fit:contain;z-index:1;width:auto;height:240px;animation:4s ease-in-out infinite hopechanSway;position:relative}.hopechan-mouth{pointer-events:none;z-index:2;animation:4s ease-in-out infinite hopechanSwayMouth;position:absolute;bottom:4px;left:50%;transform:translate(-50%)}@keyframes hopechanSway{0%,to{transform:translateY(0)}50%{transform:translateY(-4px)}}@keyframes hopechanSwayMouth{0%,to{transform:translate(-50%)translateY(0)}50%{transform:translate(-50%)translateY(-4px)}}.hopechan-bubble-wrap{flex-direction:column;flex:1;justify-content:flex-start;padding:0 16px;display:flex;overflow-y:auto}.hopechan-bubble{color:#1f2937;white-space:pre-wrap;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:linear-gradient(135deg,#fffffff2,#f3e8ff4d);border:1px solid #ede9fe;border-radius:16px;margin-top:8px;padding:14px 16px;font-size:14px;line-height:1.8;position:relative;box-shadow:0 2px 12px #8b5cf60f}.hopechan-bubble:before{content:"";filter:drop-shadow(0 -1px #ede9fe);border-bottom:8px solid #fffffff2;border-left:8px solid #0000;border-right:8px solid #0000;width:0;height:0;position:absolute;top:-8px;left:50%;transform:translate(-50%)}.hopechan-typing .hopechan-dots{align-items:center;gap:.08em;font-size:18px;display:inline-flex}.hopechan-dots span{opacity:.25;animation:1.2s infinite hopechanDotBlink}.hopechan-dots span:nth-child(2){animation-delay:.2s}.hopechan-dots span:nth-child(3){animation-delay:.4s}@keyframes hopechanDotBlink{0%,80%,to{opacity:.25}40%{opacity:1}}.hopechan-choices{flex-wrap:wrap;flex-shrink:0;justify-content:center;gap:8px;padding:10px 16px;display:flex}.hopechan-choice-btn{color:#374151;cursor:pointer;text-align:center;background-color:#fff;background-image:linear-gradient(#fff,#fff),linear-gradient(90deg,#ec4899,#8b5cf6,#3b82f6);background-position:0 0;background-repeat:repeat;background-size:auto;background-attachment:scroll;background-origin:border-box;background-clip:padding-box,border-box;border:2px solid #0000;border-radius:999px;min-width:100px;padding:10px 16px;font-size:13px;transition:transform .15s,opacity .15s,box-shadow .15s}.hopechan-choice-btn:hover{transform:translateY(-2px);box-shadow:0 4px 12px #8b5cf626}.hopechan-choice-btn:active{opacity:.8}.hopechan-choice-btn:disabled{opacity:.5;cursor:not-allowed;transform:none}.hopechan-determined{text-align:center;color:#7c3aed;background:linear-gradient(135deg,#ec489914,#8b5cf614);border:1px solid #d8b4fe;border-radius:12px;flex-direction:column;flex-shrink:0;align-items:center;gap:12px;margin:8px 16px;padding:14px 16px;font-size:14px;font-weight:600;display:flex}.hopechan-back-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#ec4899,#8b5cf6);border:none;border-radius:999px;padding:10px 24px;font-size:14px;font-weight:600;transition:transform .15s,box-shadow .15s;box-shadow:0 2px 8px #8b5cf64d}.hopechan-back-btn:hover{transform:translateY(-2px);box-shadow:0 4px 16px #8b5cf666}.hopechan-input-area{padding:12px 16px calc(28px + env(safe-area-inset-bottom));background:#fff;border-top:1px solid #ede9fe;flex-shrink:0;align-items:flex-end;gap:8px;display:flex}.hopechan-input{resize:none;border:1px solid #d8b4fe;border-radius:12px;outline:none;flex:1;min-height:52px;padding:10px 14px;font-family:inherit;font-size:14px;line-height:1.6;transition:border-color .2s}.hopechan-input:focus{border-color:#8b5cf6;box-shadow:0 0 0 2px #8b5cf61a}.hopechan-input:disabled{background:#f9fafb}.hopechan-send-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#ec4899,#8b5cf6);border:none;border-radius:12px;flex-shrink:0;padding:10px 16px;font-size:14px;font-weight:500;transition:opacity .2s}.hopechan-send-btn:hover:not(:disabled){opacity:.9}.hopechan-send-btn:disabled{opacity:.4;cursor:not-allowed}.profile-sheet.with-hopechan .profile-sheet-container{margin-right:420px}@media (max-width:900px){.hopechan-panel{border-left:none;border-radius:0;width:100%}.profile-sheet.with-hopechan .profile-sheet-container{margin-right:0;display:none}.hopechan-character{padding:8px 0 0}.hopechan-character:before{width:150px;height:150px}.hopechan-img,.hopechan-mouth{height:160px}.hopechan-bubble{padding:12px 14px;font-size:13px}.hopechan-choice-btn{min-width:80px;padding:8px 14px;font-size:12px}.hopechan-input{min-height:44px}}
