.dashboard-grid>section:first-child{display:flex;flex-direction:column}
.dashboard-grid>section:first-child>.portrait{flex:1;min-height:clamp(480px,68vh,640px)}
.portrait .portrait-art{width:min(88%,480px);height:min(60vh,540px);object-fit:contain}
.portrait:after{content:none;display:none;animation:none}
@media(max-width:760px){.dashboard-grid>section:first-child>.portrait{min-height:clamp(330px,100vw,390px)}.portrait .portrait-art{width:min(calc(100% - 16px),330px);height:350px}}
.portrait .portrait-art{transform-origin:50% 88%;animation:portrait-living-idle 4.4s ease-in-out infinite;will-change:transform}
.level-up .portrait-art{animation:portrait-living-idle 4.4s ease-in-out infinite,level-up-art .9s ease-out both}
.portrait:before{content:"";position:absolute;inset:12% 14% 10%;display:block;border:0;border-radius:50%;background:radial-gradient(ellipse,#e3bd6833 0%,#c99a4720 38%,transparent 72%);filter:blur(18px);pointer-events:none;animation:portrait-aura 3.6s ease-in-out infinite}
.portrait-sparkles{position:absolute;inset:12% 8% 18%;z-index:2;pointer-events:none}
.portrait-sparkles i{position:absolute;color:#fff0b5;font:normal 19px/1 Georgia,serif;opacity:.65;text-shadow:0 0 5px #ffe9a8,0 0 14px #e6ae48;animation:portrait-twinkle 2.2s ease-in-out infinite}
.portrait-sparkles i:before{content:"✦"}
.portrait-sparkles i:nth-child(1){left:16%;top:22%;--spark-delay:.1s}
.portrait-sparkles i:nth-child(2){right:15%;top:35%;font-size:14px;--spark-delay:.8s}
.portrait-sparkles i:nth-child(3){left:25%;top:52%;font-size:13px;--spark-delay:1.3s}
.portrait-sparkles i:nth-child(4){right:23%;top:61%;--spark-delay:.45s}
.portrait-sparkles i:nth-child(5){right:12%;top:18%;font-size:12px;--spark-delay:1.6s}
.portrait-sparkles i:nth-child(6){left:12%;top:68%;font-size:15px;--spark-delay:1.05s}
.portrait-sparkles i:nth-child(7){left:42%;top:16%;font-size:11px;--spark-delay:.65s}
.portrait-sparkles i:nth-child(8){right:38%;top:74%;font-size:12px;--spark-delay:1.4s}
@keyframes portrait-living-idle{0%,100%{transform:translate3d(0,0,0) rotate(0) scale(1)}24%{transform:translate3d(0,-2px,0) rotate(-.45deg) scale(1.006)}50%{transform:translate3d(0,-4px,0) rotate(0) scale(1.012)}76%{transform:translate3d(0,-2px,0) rotate(.45deg) scale(1.006)}}
@keyframes portrait-aura{0%,100%{opacity:.58;transform:scale(.92)}50%{opacity:1;transform:scale(1.06)}}
@keyframes portrait-twinkle{0%,100%{opacity:.12;transform:scale(.45) rotate(-15deg)}42%{opacity:1;transform:scale(1.25) rotate(20deg)}68%{opacity:.78;transform:scale(.9) rotate(0)}}
@media(prefers-reduced-motion:reduce){.portrait .portrait-art,.level-up .portrait-art,.portrait:after,.portrait:before,.portrait-sparkles i{animation:none;will-change:auto}.portrait-sparkles i{opacity:.8}}
.portrait-motion{position:absolute;top:18px;right:18px;z-index:4;min-height:36px;cursor:pointer;background:#101a24e6}
.character-meta-actions{display:flex;flex-direction:column;align-items:flex-end;gap:9px;flex-shrink:0}
.character-meta>div:first-child{min-width:0}
.character-meta-actions .portrait-motion{position:static;min-height:36px;white-space:nowrap}
.portrait[data-portrait-motion="off"] .portrait-art,.portrait[data-portrait-motion="off"]:before,.portrait[data-portrait-motion="off"] .portrait-sparkles i{animation:none;will-change:auto}
/* Explicit local opt-in overrides the global Reduce Motion rule for this portrait. */
.portrait[data-portrait-motion="on"] .portrait-art{animation:portrait-living-idle 4.4s ease-in-out infinite!important;will-change:transform}
.portrait.level-up[data-portrait-motion="on"] .portrait-art{animation:portrait-living-idle 4.4s ease-in-out infinite,level-up-art .9s ease-out both!important}
.portrait[data-portrait-motion="on"]:before{animation:portrait-aura 3.6s ease-in-out infinite!important}
.portrait[data-portrait-motion="on"] .portrait-sparkles i{animation:portrait-twinkle 2.2s ease-in-out var(--spark-delay,0s) infinite!important}
