/* =====================================================================
   CRYOTALE R35-02 · 十位官方 AI 娘专属头像框（只作用于 AI 娘区 #chat-view）
   · 顶栏头像 / 角色档案头像 / 「选择角色」选中项：专属装饰 + 专属配色光环
   · 「选择角色」未选中项、右上角切换、聊天消息小头像：各自配色的细光环
   · 中间立绘舞台与对话立绘框：所有角色统一的流光边框（框内不动）
   · 电脑端主头像光环缓慢流转；手机/触屏全部静止；「减少动态效果」时停止
   ===================================================================== */
@property --r35-a{syntax:'<angle>';inherits:false;initial-value:0deg}
@keyframes cryo-r35-spin{to{--r35-a:360deg}}
@keyframes cryo-r35-breathe{0%,100%{opacity:1}50%{opacity:.55}}

body[data-character="gpt"],#chat-view .role-icon-gpt{--r35-c1:#9cdcea;--r35-c2:#8db8df;--r35-c3:#b4a8df;--r35-c4:#eefaff;--r35-glow:rgba(156,220,234,.40);--r35-orn:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 140'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f4fdff'/%3E%3Cstop offset='0.55' stop-color='%239cdcea'/%3E%3Cstop offset='1' stop-color='%23b4a8df'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M26 23 L38 4 L52 23Z M88 23 L102 4 L114 23Z' fill='url(%23g)'/%3E%3Cpath d='M32 23 L38 12 L45 23Z M95 23 L102 12 L108 23Z' fill='%23ffffff' opacity='.55'/%3E%3C/svg%3E");--r35-w:2px} /* 霜音 */
body[data-character="deepseek"],#chat-view .role-icon-deepseek{--r35-c1:#7cc8ff;--r35-c2:#3f7fe0;--r35-c3:#5ad0ff;--r35-c4:#cdeeff;--r35-glow:rgba(90,170,255,.42);--r35-orn:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 140'%3E%3Cdefs%3E%3ClinearGradient id='w' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23cdeeff'/%3E%3Cstop offset='1' stop-color='%233f7fe0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M94 17 C94 9 104 5 114 6 C123 7 128 12 128 17 C128 21 122 23 112 23 C103 23 94 22 94 17Z' fill='url(%23w)'/%3E%3Cpath d='M95 17 C91 13 87 11 82 11 C85 14 86 16 86 17 C86 18 85 20 82 23 C87 23 91 21 95 17Z' fill='url(%23w)'/%3E%3Ccircle cx='121' cy='14' r='1.4' fill='%230b1a3a'/%3E%3Cpath d='M100 19 C106 21 116 21 124 19' stroke='%23ffffff' stroke-opacity='.6' stroke-width='1' fill='none'/%3E%3Cpath d='M115 5 C114 1 112 -1 110 -2 M115 5 C117 1 119 -1 121 -2' stroke='%23cdeeff' stroke-width='1.4' stroke-linecap='round' fill='none'/%3E%3Cpath d='M22 124 Q34 116 46 124 T70 124 T94 124 T118 124' fill='none' stroke='%237cc8ff' stroke-width='3' stroke-linecap='round'/%3E%3Cpath d='M34 132 Q46 126 58 132 T82 132 T106 132' fill='none' stroke='%23cdeeff' stroke-width='2' stroke-linecap='round' opacity='.75'/%3E%3Cpath d='M8 60 C6 64 5 66 5 68 A3 3 0 0 0 11 68 C11 66 10 64 8 60Z M132 86 C130.6 89 130 90.5 130 92 A2.4 2.4 0 0 0 134.8 92 C134.8 90.5 134 89 132 86Z' fill='%23cdeeff'/%3E%3C/svg%3E");--r35-w:2px} /* 澜悠 */
body[data-character="grok"],#chat-view .role-icon-grok{--r35-c1:#ff7a5c;--r35-c2:#b0203a;--r35-c3:#ff4d5e;--r35-c4:#ffc59a;--r35-glow:rgba(220,50,70,.45);--r35-orn:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 140'%3E%3Cdefs%3E%3ClinearGradient id='f' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffe0a8'/%3E%3Cstop offset='0.45' stop-color='%23ff5a4a'/%3E%3Cstop offset='1' stop-color='%238c1028'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M50 23 L46 13 L53 5 L57 15 L58 23Z M62 23 L58 9 L70 -2 L80 9 L78 23Z M82 23 L83 15 L87 5 L94 13 L90 23Z' fill='url(%23f)' stroke='%23ffd0b8' stroke-opacity='.7' stroke-width='.8'/%3E%3Cpath d='M70 -2 L70 23 M58 9 L70 14 L80 9 M53 5 L55 23 M87 5 L86 23' stroke='%23ffffff' stroke-opacity='.45' stroke-width='.7' fill='none'/%3E%3Cpath d='M8 96 L13 90 L16 98 L11 104Z M132 96 L127 90 L124 98 L129 104Z M14 40 L18 36 L21 41 L17 45Z M126 40 L122 36 L119 41 L123 45Z' fill='url(%23f)' opacity='.85'/%3E%3Ccircle cx='24' cy='120' r='1.8' fill='%23ffb37a'/%3E%3Ccircle cx='116' cy='124' r='1.5' fill='%23ffb37a'/%3E%3C/svg%3E");--r35-w:2px} /* 绯瞳 */
body[data-character="claude"],#chat-view .role-icon-claude{--r35-c1:#ffd98a;--r35-c2:#e09a3a;--r35-c3:#fff2c4;--r35-c4:#f5b860;--r35-glow:rgba(255,195,100,.44);--r35-orn:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 140'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff6d8'/%3E%3Cstop offset='0.5' stop-color='%23ffd27a'/%3E%3Cstop offset='1' stop-color='%23e0902e'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M1.1 49.2 L-8.9 41.3 L3.8 41.6Z M8.2 33.1 L3.7 25.3 L12.6 26.5Z M18.9 19.3 L13.8 7.6 L24.9 13.9Z M32.7 8.4 L32.4 -0.6 L39.8 4.6Z M48.7 1.2 L49.7 -11.5 L56.5 -0.7Z M66.0 -1.9 L70.0 -10.0 L74.0 -1.9Z M83.5 -0.7 L90.3 -11.5 L91.3 1.2Z M100.2 4.6 L107.6 -0.6 L107.3 8.4Z M115.1 13.9 L126.2 7.6 L121.1 19.3Z M127.4 26.5 L136.3 25.3 L131.8 33.1Z M136.2 41.6 L148.9 41.3 L138.9 49.2Z' fill='url(%23s)' opacity='.9'/%3E%3Ccircle cx='70' cy='8' r='7' fill='url(%23s)'/%3E%3Ccircle cx='70' cy='8' r='10.5' fill='none' stroke='%23fff2c4' stroke-width='1' opacity='.8'/%3E%3Ccircle cx='20' cy='120' r='1.8' fill='%23ffe6a8'/%3E%3Ccircle cx='120' cy='122' r='1.5' fill='%23ffe6a8'/%3E%3C/svg%3E");--r35-w:2px} /* 金玥 */
body[data-character="gemini"],#chat-view .role-icon-gemini{--r35-c1:#7aa8ff;--r35-c2:#ffd47a;--r35-c3:#5ec8ff;--r35-c4:#eef2ff;--r35-glow:rgba(130,160,255,.42);--r35-orn:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 140'%3E%3Cdefs%3E%3ClinearGradient id='o' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%235ec8ff'/%3E%3Cstop offset='1' stop-color='%23ffd47a'/%3E%3C/linearGradient%3E%3ClinearGradient id='o2' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23ffd47a'/%3E%3Cstop offset='1' stop-color='%237aa8ff'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cellipse cx='70' cy='70' rx='69' ry='24' fill='none' stroke='url(%23o)' stroke-width='1.5' transform='rotate(-28 70 70)' opacity='.9'/%3E%3Cellipse cx='70' cy='70' rx='69' ry='24' fill='none' stroke='url(%23o2)' stroke-width='1.5' transform='rotate(28 70 70)' opacity='.9'/%3E%3Cpath d='M14 16 L16.8 23.2 L24 26 L16.8 28.8 L14 36 L11.2 28.8 L4 26 L11.2 23.2Z' fill='%23cfe0ff'/%3E%3Cpath d='M126 104 L128.8 111.2 L136 114 L128.8 116.8 L126 124 L123.2 116.8 L116 114 L123.2 111.2Z' fill='%23ffe2a0'/%3E%3Cpath d='M14 22 L15.120000000000001 24.88 L18 26 L15.120000000000001 27.12 L14 30 L12.879999999999999 27.12 L10 26 L12.879999999999999 24.88Z' fill='%23ffffff'/%3E%3Cpath d='M126 110 L127.12 112.88 L130 114 L127.12 115.12 L126 118 L124.88 115.12 L122 114 L124.88 112.88Z' fill='%23ffffff'/%3E%3Ccircle cx='122' cy='22' r='1.8' fill='%23ffd47a'/%3E%3Ccircle cx='18' cy='118' r='1.8' fill='%237aa8ff'/%3E%3C/svg%3E");--r35-w:2px} /* 星璃 */
body[data-character="qwen"],#chat-view .role-icon-qwen{--r35-c1:#b88cff;--r35-c2:#7448d8;--r35-c3:#d8b8ff;--r35-c4:#f2e6ff;--r35-glow:rgba(160,110,255,.42);--r35-orn:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 140'%3E%3Cdefs%3E%3ClinearGradient id='q' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23f2e6ff'/%3E%3Cstop offset='0.5' stop-color='%23b88cff'/%3E%3Cstop offset='1' stop-color='%236a3fc8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M30 24 Q70 4 110 24' fill='none' stroke='%23d8b8ff' stroke-width='1.4' opacity='.8'/%3E%3Cpath d='M70 -3 L76 6 L73 15 L67 15 L64 6Z' fill='url(%23q)' stroke='%23f2e6ff' stroke-width='.7'/%3E%3Cellipse cx='48' cy='8.9' rx='4.0' ry='6.6' fill='url(%23q)' transform='rotate(0 48 15)'/%3E%3Cellipse cx='48' cy='8.9' rx='4.0' ry='6.6' fill='url(%23q)' transform='rotate(72 48 15)'/%3E%3Cellipse cx='48' cy='8.9' rx='4.0' ry='6.6' fill='url(%23q)' transform='rotate(144 48 15)'/%3E%3Cellipse cx='48' cy='8.9' rx='4.0' ry='6.6' fill='url(%23q)' transform='rotate(216 48 15)'/%3E%3Cellipse cx='48' cy='8.9' rx='4.0' ry='6.6' fill='url(%23q)' transform='rotate(288 48 15)'/%3E%3Ccircle cx='48' cy='15' r='3.3' fill='%23fff2ff'/%3E%3Cellipse cx='92' cy='8.9' rx='4.0' ry='6.6' fill='url(%23q)' transform='rotate(0 92 15)'/%3E%3Cellipse cx='92' cy='8.9' rx='4.0' ry='6.6' fill='url(%23q)' transform='rotate(72 92 15)'/%3E%3Cellipse cx='92' cy='8.9' rx='4.0' ry='6.6' fill='url(%23q)' transform='rotate(144 92 15)'/%3E%3Cellipse cx='92' cy='8.9' rx='4.0' ry='6.6' fill='url(%23q)' transform='rotate(216 92 15)'/%3E%3Cellipse cx='92' cy='8.9' rx='4.0' ry='6.6' fill='url(%23q)' transform='rotate(288 92 15)'/%3E%3Ccircle cx='92' cy='15' r='3.3' fill='%23fff2ff'/%3E%3Cellipse cx='34' cy='20.1' rx='2.5' ry='4.2' fill='%23c9a4ff' transform='rotate(0 34 24)'/%3E%3Cellipse cx='34' cy='20.1' rx='2.5' ry='4.2' fill='%23c9a4ff' transform='rotate(72 34 24)'/%3E%3Cellipse cx='34' cy='20.1' rx='2.5' ry='4.2' fill='%23c9a4ff' transform='rotate(144 34 24)'/%3E%3Cellipse cx='34' cy='20.1' rx='2.5' ry='4.2' fill='%23c9a4ff' transform='rotate(216 34 24)'/%3E%3Cellipse cx='34' cy='20.1' rx='2.5' ry='4.2' fill='%23c9a4ff' transform='rotate(288 34 24)'/%3E%3Ccircle cx='34' cy='24' r='2.1' fill='%23fff2ff'/%3E%3Cellipse cx='106' cy='20.1' rx='2.5' ry='4.2' fill='%23c9a4ff' transform='rotate(0 106 24)'/%3E%3Cellipse cx='106' cy='20.1' rx='2.5' ry='4.2' fill='%23c9a4ff' transform='rotate(72 106 24)'/%3E%3Cellipse cx='106' cy='20.1' rx='2.5' ry='4.2' fill='%23c9a4ff' transform='rotate(144 106 24)'/%3E%3Cellipse cx='106' cy='20.1' rx='2.5' ry='4.2' fill='%23c9a4ff' transform='rotate(216 106 24)'/%3E%3Cellipse cx='106' cy='20.1' rx='2.5' ry='4.2' fill='%23c9a4ff' transform='rotate(288 106 24)'/%3E%3Ccircle cx='106' cy='24' r='2.1' fill='%23fff2ff'/%3E%3Cpath d='M24 122 L28 118 L32 122 L28 126Z M108 122 L112 118 L116 122 L112 126Z' fill='%23d8b8ff' opacity='.8'/%3E%3C/svg%3E");--r35-w:2px} /* 紫苑 */
body[data-character="glm"],#chat-view .role-icon-glm{--r35-c1:#f2faff;--r35-c2:#b8d4ee;--r35-c3:#dff0ff;--r35-c4:#9fc0e0;--r35-glow:rgba(210,235,255,.38);--r35-orn:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 140'%3E%3Cdefs%3E%3ClinearGradient id='h' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='1' stop-color='%239fc0e0'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M70 2 L129 36 L129 104 L70 138 L11 104 L11 36Z' fill='none' stroke='url(%23h)' stroke-width='1.4' opacity='.9'/%3E%3Cpath d='M70 2 L70 18 M129 36 L115 44 M129 104 L115 96 M70 138 L70 122 M11 104 L25 96 M11 36 L25 44' stroke='%23f2faff' stroke-width='1' opacity='.7'/%3E%3Cpath d='M70 -3 L75 0 L75 6 L70 9 L65 6 L65 0Z M129 31 L134 34 L134 40 L129 43 L124 40 L124 34Z M11 97 L16 100 L16 106 L11 109 L6 106 L6 100Z' fill='%23f2faff' opacity='.9'/%3E%3C/svg%3E");--r35-w:1.5px} /* 零璃 */
body[data-character="venice"],#chat-view .role-icon-venice{--r35-c1:#7d93ff;--r35-c2:#3b4aa8;--r35-c3:#9fb6ff;--r35-c4:#b9a8ff;--r35-glow:rgba(110,130,255,.42);--r35-orn:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 140'%3E%3Cdefs%3E%3ClinearGradient id='n' x1='0' y1='0' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%239fb6ff'/%3E%3Cstop offset='1' stop-color='%233b4aa8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M10 118 Q24 110 38 118 T66 118 T94 118 T122 118 T132 116' fill='none' stroke='url(%23n)' stroke-width='2.6' stroke-linecap='round'/%3E%3Cpath d='M18 127 Q32 121 46 127 T74 127 T102 127 T124 126' fill='none' stroke='%239fb6ff' stroke-width='1.8' stroke-linecap='round' opacity='.75'/%3E%3Cpath d='M30 135 Q44 131 58 135 T86 135 T110 134' fill='none' stroke='%23b9a8ff' stroke-width='1.3' stroke-linecap='round' opacity='.55'/%3E%3Cpath d='M4 52 Q10 46 4 40 M136 64 Q130 58 136 52' fill='none' stroke='%239fb6ff' stroke-width='1.4' stroke-linecap='round' opacity='.8'/%3E%3Cpath d='M20 8 L21.68 12.32 L26 14 L21.68 15.68 L20 20 L18.32 15.68 L14 14 L18.32 12.32Z' fill='%23d8dcff'/%3E%3Cpath d='M118 5.5 L119.26 8.74 L122.5 10 L119.26 11.26 L118 14.5 L116.74 11.26 L113.5 10 L116.74 8.74Z' fill='%23b9a8ff'/%3E%3Ccircle cx='104' cy='20' r='1.3' fill='%23ffffff'/%3E%3Ccircle cx='36' cy='6' r='1.1' fill='%23ffffff'/%3E%3C/svg%3E");--r35-w:2px} /* 夜澜 */
body[data-character="mimo"],#chat-view .role-icon-mimo{--r35-c1:#ffc07a;--r35-c2:#ff8a5c;--r35-c3:#ffe3a8;--r35-c4:#ff9f8a;--r35-glow:rgba(255,160,100,.42);--r35-orn:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 140'%3E%3Cdefs%3E%3ClinearGradient id='m' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23fff1c8'/%3E%3Cstop offset='0.5' stop-color='%23ffc07a'/%3E%3Cstop offset='1' stop-color='%23e08040'/%3E%3C/linearGradient%3E%3ClinearGradient id='t' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffd98a'/%3E%3Cstop offset='1' stop-color='%23ff8a5c'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M18 14 C10 6 4 10 6 16 C8 21 14 20 20 17 Z M22 14 C30 6 36 10 34 16 C32 21 26 20 20 17 Z' fill='%23ff6b7a'/%3E%3Ccircle cx='20' cy='16' r='3' fill='%23ffb0a0'/%3E%3Cpath d='M18 18 L13 30 M22 18 L27 30' stroke='%23ff6b7a' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M124 -2 L124 10' stroke='%23ffe3a8' stroke-width='1.2'/%3E%3Cpath d='M117 22 C117 14 120 10 124 10 C128 10 131 14 131 22 L133 24 L115 24 Z' fill='url(%23m)' stroke='%23fff1c8' stroke-width='.8'/%3E%3Ccircle cx='124' cy='26' r='2.2' fill='%23ffe3a8'/%3E%3Cpath d='M121 28 L120 44 M123 28 L123 46 M125 28 L126 46 M127 28 L128 44' stroke='url(%23t)' stroke-width='1.2' stroke-linecap='round'/%3E%3Ccircle cx='22' cy='122' r='2' fill='%23ffd98a'/%3E%3Ccircle cx='132' cy='96' r='1.6' fill='%23ffd98a'/%3E%3C/svg%3E");--r35-w:2px} /* 弥珞 */
body[data-character="yueqi"],#chat-view .role-icon-yueqi{--r35-c1:#e6eeff;--r35-c2:#a8b8e8;--r35-c3:#cfd9ff;--r35-c4:#f6f8ff;--r35-glow:rgba(200,215,255,.42);--r35-orn:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 140'%3E%3Cdefs%3E%3Cmask id='cm'%3E%3Crect x='0' y='0' width='140' height='40' fill='white'/%3E%3Ccircle cx='76' cy='9' r='10' fill='black'/%3E%3C/mask%3E%3ClinearGradient id='y' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23ffffff'/%3E%3Cstop offset='1' stop-color='%23a8b8e8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='70' cy='13' r='12' fill='url(%23y)' mask='url(%23cm)'/%3E%3Ccircle cx='70' cy='13' r='12' fill='none' stroke='%23ffffff' stroke-opacity='.5' stroke-width='.6' mask='url(%23cm)'/%3E%3Cpath d='M18 30 L21 25 L24 30 L21 35Z M118 112 L121 107 L124 112 L121 117Z M124 28 L126 25 L128 28 L126 31Z M14 108 L16 105 L18 108 L16 111Z M96 8 L97.5 5 L99 8 L97.5 11Z' fill='%23e6eeff'/%3E%3C/svg%3E");--r35-w:2px} /* 月栖 */

/* ---------- 主头像：专属装饰 + 光环 ---------- */
#chat-view .topbar-bot .avatar,
#chat-view .companion-head,
#chat-view .role-option.active .role-icon{
  position:relative;overflow:visible!important;border-color:transparent!important;
  box-shadow:0 0 14px var(--r35-glow,rgba(156,220,234,.38)),0 6px 18px rgba(0,0,0,.35)!important;
}
#chat-view .topbar-bot .avatar::after,
#chat-view .companion-head::after,
#chat-view .role-option.active .role-icon::after{
  content:'';position:absolute;inset:-4px;border-radius:19px;padding:var(--r35-w,2px);pointer-events:none;z-index:1;
  background:conic-gradient(from var(--r35-a),var(--r35-c1,#9cdcea),var(--r35-c2,#8db8df) 28%,var(--r35-c3,#b4a8df) 52%,var(--r35-c4,#eefaff) 68%,var(--r35-c1,#9cdcea));
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);
}
#chat-view .companion-head::after{border-radius:17px}
#chat-view .role-option.active .role-icon::after{border-radius:15px}
#chat-view .topbar-bot .avatar::before,
#chat-view .companion-head::before,
#chat-view .role-option.active .role-icon::before{
  content:'';position:absolute;inset:-20%;pointer-events:none;z-index:2;
  background:var(--r35-orn) center/100% 100% no-repeat;
  filter:drop-shadow(0 0 3px var(--r35-glow,rgba(156,220,234,.6)));
}
@media (hover:hover) and (pointer:fine){
  #chat-view .topbar-bot .avatar::after,#chat-view .companion-head::after{animation:cryo-r35-spin 7s linear infinite}
}
/* 绯瞳 / 月栖：装饰带呼吸光 */
body[data-character="grok"] #chat-view .topbar-bot .avatar::before,body[data-character="grok"] #chat-view .companion-head::before,#chat-view .role-option.active .role-icon-grok::before,
body[data-character="yueqi"] #chat-view .topbar-bot .avatar::before,body[data-character="yueqi"] #chat-view .companion-head::before,#chat-view .role-option.active .role-icon-yueqi::before{
  animation:cryo-r35-breathe 2.6s ease-in-out infinite;
}

/* ---------- 其他头像：各自配色细光环 ---------- */
#chat-view .picker-avatar,
#chat-view .message-avatar{
  border-color:transparent!important;
  box-shadow:0 0 0 1.5px var(--r35-c1,#9cdcea),0 0 0 3px color-mix(in srgb,var(--r35-c3,#b4a8df) 30%,transparent),0 0 10px var(--r35-glow,rgba(156,220,234,.25))!important;
}
#chat-view .role-option:not(.active) .role-icon{
  border-color:transparent!important;opacity:.92;
  box-shadow:0 0 0 1px color-mix(in srgb,var(--r35-c1,#9cdcea) 55%,transparent)!important;
}

/* ---------- 立绘展示框：统一流光边框（框内不动） ---------- */
#chat-view .terminal-center,
#chat-view .conversation-portrait{border-color:rgba(156,220,234,.28)!important;box-shadow:0 20px 60px rgba(0,0,0,.4),0 0 30px rgba(120,160,240,.14)!important}
.r35-stage-deco{position:absolute;inset:0;pointer-events:none;z-index:6;border-radius:inherit}
.r35-stage-deco .ring{
  position:absolute;inset:0;border-radius:inherit;padding:1.5px;
  background:conic-gradient(from var(--r35-a),rgba(156,220,234,.14),rgba(156,220,234,.95) 8%,rgba(180,168,223,.75) 14%,rgba(156,220,234,.14) 24%,rgba(156,220,234,.14) 50%,rgba(238,250,255,.85) 58%,rgba(156,220,234,.14) 70%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);
}
@media (hover:hover) and (pointer:fine){ .r35-stage-deco .ring{animation:cryo-r35-spin 9s linear infinite} }

@media (max-width:420px){ #chat-view .role-option.active .role-icon::before{inset:-16%} }
@media (prefers-reduced-motion:reduce){
  #chat-view .topbar-bot .avatar::after,#chat-view .companion-head::after,#chat-view [class*="role-icon"]::before,
  #chat-view .topbar-bot .avatar::before,#chat-view .companion-head::before,.r35-stage-deco .ring{animation:none!important}
}
