/* Full feather animation shared by nearby, profile, shop, notes and chat. */
.av.feather-av{--feather-span:235%;--feather-power:.55;--flap-angle:4deg;--flap-speed:4.6s;isolation:isolate;margin:10px 30px!important;overflow:visible;animation:none!important}
.av.feather-av.w3{--feather-span:244%;--flap-angle:4.5deg}.av.feather-av.w4{--feather-span:253%;--feather-power:.65;--flap-angle:5deg}.av.feather-av.w5{--feather-span:262%;--feather-power:.75;--flap-angle:5.5deg}.av.feather-av.w6{--feather-span:271%;--feather-power:.85;--flap-angle:6deg}.av.feather-av.w7{--feather-span:280%;--feather-power:.95;--flap-angle:6.5deg}.av.feather-av.w8{--feather-span:290%;--feather-power:1;--flap-angle:7deg;--flap-speed:5s}
.av.feather-av::before,.av.feather-av::after{display:none!important}
.feather-scene{position:absolute;inset:0;z-index:1;pointer-events:none;user-select:none;color:var(--feather-halo)}
.feather-art{position:absolute;left:50%;top:50%;width:var(--feather-span);aspect-ratio:3/2;transform:translate(-50%,-64%);animation:feather-hover 5.6s ease-in-out infinite;filter:drop-shadow(0 1px 2px #947f6426)}
.feather-leaf{position:absolute;inset:0;transform-origin:50% 64%;animation:feather-flap var(--flap-speed) cubic-bezier(.45,0,.4,1) infinite;--direction:1}
.feather-leaf.leaf-left{clip-path:inset(0 50% 0 0)}.feather-leaf.leaf-right{clip-path:inset(0 0 0 50%);--direction:-1}
.feather-leaf .feather-pair{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;max-width:none!important;pointer-events:none;z-index:1}
.feather-leaf::before{content:"";position:absolute;inset:0;z-index:0;background:var(--feather-halo);mask:var(--feather-mask) center/contain no-repeat;-webkit-mask:var(--feather-mask) center/contain no-repeat;filter:blur(6px);animation:feather-aura 5.6s ease-in-out infinite;pointer-events:none}
.feather-shine{position:absolute;inset:0;z-index:2;mask:var(--feather-mask) center/contain no-repeat;-webkit-mask:var(--feather-mask) center/contain no-repeat;background:linear-gradient(112deg,transparent 30%,#fff2 43%,#fffc 49%,#fff3 54%,transparent 66%);background-size:320% 100%;animation:feather-satin 5.8s ease-in-out infinite}
.av.feather-av>.hex{box-shadow:0 0 0 3px #fffcf6,0 3px 10px #8c735b21;z-index:2}
.feather-drift{position:absolute;top:5%;left:-55%;width:10px;height:17px;opacity:0;transform-origin:50% 20%;animation:feather-fall 6.5s ease-in-out infinite;--float:12px;--turn:30deg;color:color-mix(in srgb,var(--feather-halo) 65%,#fff);filter:drop-shadow(0 0 3px var(--feather-halo))}
.feather-drift svg{display:block;width:100%;height:100%}
.feather-drift.drift-1{left:auto;right:-55%;top:15%;animation-delay:-2.5s;--float:-15px;--turn:-35deg}
.feather-drift.drift-2{left:-30%;top:-25%;animation-delay:-4s;--float:-10px;--turn:-25deg}
.feather-drift.drift-3{left:auto;right:-30%;top:-20%;animation-delay:-5.5s;--float:14px;--turn:40deg}
.feather-drift.drift-4{left:-42%;top:-10%;width:8px;height:14px;animation-delay:-1.2s;--float:19px;--turn:60deg}
.feather-drift.drift-5{left:auto;right:-42%;top:0;width:8px;height:14px;animation-delay:-4.5s;--float:-21px;--turn:-55deg}
.feather-spark{position:absolute;left:-40%;top:-12%;width:9px;height:9px;color:var(--feather-halo);opacity:0;filter:drop-shadow(0 0 3px currentColor);animation:feather-twinkle 4.8s ease-in-out infinite}
.feather-spark::before,.feather-spark::after{content:"";position:absolute;inset:0;background:linear-gradient(transparent,#fff 45%,var(--feather-halo) 55%,transparent);border-radius:50%;transform:scaleX(.18)}.feather-spark::after{transform:rotate(90deg) scaleX(.18)}
.feather-spark.spark-1{left:auto;right:-42%;top:12%;width:7px;height:7px;animation-delay:-1.7s}.feather-spark.spark-2{left:-18%;top:28%;width:6px;height:6px;animation-delay:-3.2s}.feather-spark.spark-3{left:auto;right:-20%;top:-25%;animation-delay:-2.5s}
@keyframes feather-flap{0%,100%{transform:rotate(calc(var(--flap-angle)*var(--direction)*.35)) scaleY(1)}38%{transform:rotate(calc(var(--flap-angle)*var(--direction)*-1)) scaleY(.955)}72%{transform:rotate(calc(var(--flap-angle)*var(--direction))) scaleY(1)}}
@keyframes feather-hover{0%,100%{transform:translate(-50%,-64%)}50%{transform:translate(-50%,-66%)}}
@keyframes feather-aura{0%,100%{opacity:calc(var(--feather-power)*.25)}50%{opacity:calc(var(--feather-power)*.75)}}
@keyframes feather-satin{0%,10%{background-position:100% 0;opacity:0}28%{opacity:calc(var(--feather-power)*.85)}50%,100%{background-position:0 0;opacity:0}}
@keyframes feather-fall{0%,8%{opacity:0;transform:translate(0,-5px) rotate(-15deg)}20%{opacity:.9}65%{opacity:.65}90%,100%{opacity:0;transform:translate(var(--float),42px) rotate(var(--turn))}}
@keyframes feather-twinkle{0%,12%,65%,100%{opacity:0;transform:scale(.35) rotate(-12deg)}32%{opacity:var(--feather-power);transform:scale(1) rotate(0)}48%{opacity:.25;transform:scale(.65) rotate(12deg)}}
/* Size changes fit the available space; every context keeps all particles. */
.mecard .av.feather-av.lg{margin:22px 0 12px!important;--feather-span:210%}.mecard .av.feather-av.w3{--feather-span:218%}.mecard .av.feather-av.w4{--feather-span:226%}.mecard .av.feather-av.w5{--feather-span:234%}.mecard .av.feather-av.w6{--feather-span:242%}.mecard .av.feather-av.w7{--feather-span:250%}.mecard .av.feather-av.w8{--feather-span:258%}
.mecard .feather-drift{width:13px;height:22px}
.st-live .av.feather-av{margin:0!important;transform:none!important}.st-art.wg .av.feather-av.sm{transform:none!important}.st-detail-stage .av.feather-av.lg{margin:0!important}
.row:has(.feather-av){min-height:120px;gap:12px}.row .av.feather-av{margin:12px 30px!important}.row .feather-art{max-width:270%}
#msgs .mav:has(.feather-av){width:100px;min-width:100px;min-height:94px;display:grid!important;place-items:center;align-self:center}
#msgs .mav .av.feather-av{margin:0!important;transform:none!important}#msgs .mrow:has(.feather-av) .m,#msgs .mrow.me:has(.feather-av) .m{max-width:calc(100% - 108px)}
#msgs .mrow.me .mav:has(.feather-av){display:grid!important}
/* Nearby cards use the same equipped-avatar renderer, including actual photos. */
.d1visual.has-equipment{height:164px!important;min-height:164px;filter:none!important;overflow:hidden;background:radial-gradient(ellipse at 50% 45%,#fffdf7,#f6eadd)}
.near-wing-stage{width:100%;height:100%;display:grid;place-items:center;position:relative;padding-top:10px}
.near-wing-stage .hex.nearby{width:clamp(44px,13vw,58px)!important;height:clamp(44px,13vw,58px)!important;font-size:30px!important}
.near-wing-stage .av{margin:0!important}
.near-wing-stage .av.ear .hex.nearby{width:64px!important;height:64px!important}
/* Notes reserve space above and beside the head, rather than hiding equipment. */
.notes{padding-top:104px!important;scrollbar-width:none}.notes::-webkit-scrollbar{display:none}
.notes .ntc{width:136px!important;gap:10px!important}
.notes .ntc .sring{zoom:1!important;width:74px;height:74px;padding:10px;box-sizing:border-box;flex:none;overflow:visible}
.notes .ntc .hex.sm{width:52px!important;height:52px!important;font-size:28px!important;transform:none!important}
.notes .ntc .av{margin:0!important;transform:none!important}
.notes .ntc .av.feather-av{--feather-span:220%}
.notes .ntc>.nb{max-width:120px!important;box-sizing:border-box;bottom:calc(100% + 28px)!important}
.notes .ntc .stnew{zoom:1!important}
.st-paused .feather-leaf::before{animation-play-state:paused!important}
@media(max-width:360px){.mecard .av.feather-av.lg{--feather-span:210%}.mecard .av.feather-av.w7{--feather-span:216%}.mecard .av.feather-av.w8{--feather-span:220%}}
@media(prefers-reduced-motion:reduce){.feather-art,.feather-leaf,.feather-leaf::before{animation:none!important}.feather-leaf::before{opacity:.2}.feather-shine,.feather-spark,.feather-drift{display:none!important}}
/* Reserve a header slot for full animation without squeezing the contact name. */
#room .rh{gap:4px!important;padding-left:8px!important;padding-right:8px!important}
#room .rh .ib{width:34px!important;min-width:34px!important;padding:0!important;flex:none}
#room #rhav{width:72px;min-width:72px;display:grid;place-items:center;flex:none}
#room #rhav .av.feather-av{margin:0!important;--feather-span:210%}
#room .rh .t{min-width:0;flex:1}
/* 2026-11-09：附近卡片與配對卡頭貼放大 */
.near-wing-stage .hex.nearby{width:76px!important;height:76px!important;font-size:42px!important}
.near-wing-stage .av.ear .hex.nearby{width:80px!important;height:80px!important}
.swc:not(.hascv) .swav>.hex.lg{width:140px!important;height:140px!important;font-size:76px!important;box-shadow:0 0 0 4px #fffcf6,0 8px 24px #0005}
.swc:not(.hascv) .swav .av{--avs:1.3}.swc:not(.hascv) .swav{bottom:46%}
.notes .sring.sgm .av .wing{display:block!important}
.mtav .av{transform:none!important;margin:0 30px!important}.mtav>.hex.lg{transform:none!important}
@media(max-width:380px){.mtav .av{margin:0 24px!important}}
