/* V80: keep the picture and text stationary; effects belong to separate layers. */
.avatar-circle.inferno-avatar66{position:relative!important;overflow:visible!important;isolation:isolate;box-sizing:border-box;background:transparent!important;box-shadow:none; border:0!important;}
.avatar-circle.inferno-avatar66>img,.avatar-circle.inferno-avatar66>.aura-avatar-art{position:relative;z-index:1;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;border-radius:50%;object-fit:cover;}
.avatar-circle.inferno-avatar66::after{inset:-34%!important;background-image:var(--inferno-avatar-frame);background-position:center;background-size:100% 100%;background-repeat:no-repeat;pointer-events:none;z-index:2;filter:drop-shadow(0 0 3px #edab5366);mask-image:radial-gradient(circle closest-side,transparent 0 60%,#000 61%);animation:none;}
@keyframes avatar-aura80{0%,100%{transform:rotate(-3deg) scale(1);filter:drop-shadow(0 0 2px #ffb34255)}50%{transform:rotate(3deg) scale(1.045);filter:drop-shadow(0 0 5px #ffb342bb)}}
#room-view .message-meta,#room-view .member-card,#room-view .mic-seat,#room-view .mic-ring{overflow:visible!important;}
#room-view .member-card .inferno-avatar66,#room-view .message-meta .inferno-avatar66{margin-inline:5px;}
#room-view .mic-ring .inferno-avatar66{width:100%!important;height:100%!important;}
#room-view .mic-label{overflow:visible;max-width:100%;text-overflow:ellipsis;white-space:nowrap;}
#room-view .mic-label bdi{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;}
.pf18-avatar .inferno-avatar66,.choice-avatar67 .inferno-avatar66{margin:9px;}
/* Imperial entrance: crop the two authentic orbs out of the original 3:1 banner. */
#room-view .room-event.imperial-row80{display:flex;justify-content:center;align-items:center;min-height:64px;padding:5px 8px;background:linear-gradient(100deg,#14252e,#263f48,#14252e)!important;color:#fff!important;border:0!important;}
.imperial-entry80{display:grid;grid-template-columns:clamp(42px,8vw,66px) minmax(0,1fr) clamp(42px,8vw,66px);align-items:center;gap:6px;width:min(100%,510px);margin:auto;isolation:isolate;}
.entry-orb80{display:block;position:relative;width:100%;aspect-ratio:1;overflow:hidden;border-radius:50%;pointer-events:none;}
.entry-orb80 img{position:absolute;width:300%!important;height:100%!important;max-width:none!important;max-height:none!important;top:0;object-fit:fill;}
.orb-right80 img{right:0;left:auto;}.orb-left80 img{left:0;right:auto;}
.entry-moving80 .entry-orb80{animation:entry-orb80 1.15s ease-in-out 4 alternate;}.entry-moving80 .orb-left80{animation-direction:alternate-reverse;}
@keyframes entry-orb80{from{transform:rotate(-8deg) scale(.96);filter:drop-shadow(0 0 2px #e95b16)}to{transform:rotate(8deg) scale(1.06);filter:drop-shadow(0 0 7px #ffab39)}}
.entry-name80{min-width:0;display:grid;justify-items:center;gap:3px;text-align:center;color:#fff8e1!important;padding:4px 3px;line-height:1.45;}
.entry-name80 bdi{display:block;max-width:100%;font-size:clamp(15px,2.2vw,22px);font-weight:800;text-shadow:0 1px 3px #000;overflow-wrap:anywhere;}
.entry-name80 small{font-size:11px;color:#e6d7bc;overflow-wrap:anywhere;}
.choice-preview67 .imperial-entry80{background:#233b45;border-radius:10px;padding:9px;}
/* The selected message border moves independently of the text. */
.aura-frame80{position:relative;isolation:isolate;border:2px solid var(--frame-a)!important;background:var(--frame-c)!important;color:#242127!important;box-shadow:0 0 0 1px var(--frame-b)!important;padding:8px 12px!important;line-height:1.55;}
.aura-frame80::before{content:'';position:absolute;inset:-2px;border-radius:inherit;padding:3px;background:linear-gradient(120deg,var(--frame-a) 0%,var(--frame-b) 18%,#fff7d0 25%,var(--frame-a) 45%,var(--frame-b) 65%,var(--frame-a) 100%);background-size:300% 300%;mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask-composite:exclude;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;pointer-events:none;z-index:2;animation:none;}
@keyframes frame-travel80{0%{background-position:0% 50%}100%{background-position:300% 50%}}
/* Contrast-safe name effects: no transparent text, no gradient across glyphs. */
.aura-name80{font-weight:800;line-height:1.45;color:inherit;opacity:1;filter:none;text-shadow:none;}
.aura-name80.effect80-neon_soft{text-shadow:0 0 3px currentColor;}
.aura-name80.effect80-neon_strong{text-shadow:0 0 2px currentColor,0 0 6px color-mix(in srgb,currentColor 48%,transparent);}
.aura-name80.effect80-royal{text-shadow:0 1px 1px #54330055,0 0 4px #e9b654a0;}
.aura-name80.effect80-fire{text-shadow:0 1px 1px #51150080,0 0 5px #ff6a2a88;}
.aura-name80.effect80-crystal{text-shadow:0 1px 1px #165a7555,0 0 5px #69d9ff99;}
#room-view .member-card[data-role=root] .member-name,#room-view .message-row[data-sender-role=root] .sender-name{font-weight:800;text-shadow:none!important;filter:none;}
#room-view .member-card[data-role=root] .forge-nick60,#room-view .message-row[data-sender-role=root] .sender-name> bdi{font-weight:800;-webkit-text-stroke:0;opacity:1;}
.name-editor80{grid-column:1/-1;display:grid;gap:8px;padding:10px;border:1px solid #9c8ac377;border-radius:12px;min-width:0;}.name-preview80{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}.name-preview80>div{display:grid;place-items:center;min-height:56px;padding:7px;border-radius:8px;overflow-wrap:anywhere;text-align:center;}.name-light80{background:#fff;color:#8b5b00;}.name-dark80{background:#20233b;color:#ffda80;}.name-editor80 small{font-size:11px;}
.aura-mobile-nav80{display:none;}
@media(max-width:760px){
html.browser-shell #room-view.classic-room{padding:0 4px 4px;min-width:0;}
#room-view.classic-room .aura-mobile-nav80{position:relative;z-index:21;display:flex;flex:0 0 auto;gap:5px;padding:3px;direction:rtl;background:#e5e8f2;border-radius:8px;}
#room-view .aura-mobile-nav80 button{flex:1;min-height:44px;border:0;border-radius:7px;background:#fff;color:#25354e;font-weight:700;font-size:14px;touch-action:manipulation;}
#room-view:not(.aura-mobile-roster-open) [data-pane80=chat],#room-view.aura-mobile-roster-open [data-pane80=members]{background:#4a367c;color:#fff;}
#room-view.classic-room .roster-area,#room-view.classic-room[data-roster-side] .roster-area{inset:0!important;width:100%!important;max-width:none!important;box-shadow:none;}
#room-view.classic-room .room-grid,#room-view.classic-room .chat-main,#room-view.classic-room .roster-scroll,#room-view.classic-room .roster-area{touch-action:pan-y pinch-zoom;overscroll-behavior-y:contain;}
#room-view.classic-room .chat-main,#room-view.classic-room .roster-scroll{overflow-y:auto!important;overflow-x:hidden!important;-webkit-overflow-scrolling:touch;min-height:0;}
#room-view.classic-room .member-card{min-height:54px;height:auto;padding:7px 9px;cursor:pointer;touch-action:pan-y;}
#room-view.classic-room .member-name{min-width:0;overflow-wrap:anywhere;}
#room-view.classic-room .sender-name{min-height:36px;max-width:80%;padding:5px 3px;touch-action:manipulation;}
#room-view.classic-room .message-meta{gap:5px;min-height:38px;flex-wrap:wrap;}
#room-view.classic-room .stage-row{display:grid;justify-content:start!important;grid-template-columns:none!important;grid-auto-columns:64px;grid-auto-flow:column;grid-template-rows:1fr;grid-auto-rows:78px!important;overflow-x:auto!important;overflow-y:hidden!important;touch-action:pan-x;flex-basis:88px!important;height:88px!important;min-height:88px!important;padding:7px 8px;}
#room-view.classic-room .stage-row[hidden],#room-view.turn-mode57 .stage-row{display:none!important;}
#room-view.classic-room .toolbar-actions,#room-view.classic-room .g45-mobile-nav{overflow-x:auto!important;overflow-y:hidden!important;flex-wrap:nowrap!important;touch-action:pan-x;scrollbar-width:thin;}
#room-view.classic-room .g45-mobile-nav button{flex:none;min-height:40px;}
#room-view.classic-room .chat-footer{flex-wrap:wrap;height:auto!important;min-height:58px!important;flex:0 0 auto;gap:4px;padding:4px;}
#room-view.classic-room .classic-composer-wrap{flex:1 1 110px;min-width:80px;}
#room-view.classic-room .chat-footer #composer{font-size:16px!important;}
#room-view.classic-room .chat-footer .tool,#room-view.classic-room #send-message,#room-view.classic-room #emoji-btn{min-width:40px;min-height:44px;touch-action:manipulation;}
#menu-root .context-menu{position:fixed!important;left:8px!important;right:8px!important;top:auto!important;bottom:max(8px,env(safe-area-inset-bottom))!important;width:auto!important;max-width:none!important;max-height:min(65dvh,480px);overflow:auto;overscroll-behavior:contain;border-radius:14px;padding:8px;z-index:9999;}
#menu-root .context-menu button{min-height:44px;font-size:15px;white-space:normal;text-align:start;}
#modal-root .dialog{max-width:calc(100vw - 12px)!important;max-height:calc(var(--aura-mobile-height,100dvh) - 14px)!important;overflow:hidden;}
#modal-root .dialog-body{overflow:auto!important;overscroll-behavior:contain;min-height:0;}
#modal-root input,#modal-root select,#modal-root textarea{font-size:16px!important;}
#room-view .imperial-row80{min-height:58px;padding:5px;}
}
@media(prefers-reduced-motion:reduce){.avatar-circle.inferno-avatar66::after{animation:none!important;background-image:var(--inferno-avatar-frame)!important;}.entry-orb80,.aura-frame80::before{animation:none!important;}}
html.aura-motion-off80 .avatar-circle.inferno-avatar66::after{animation:none!important;background-image:var(--inferno-avatar-frame)!important;}html.aura-motion-off80 .aura-frame80::before,html.aura-motion-off80 .entry-orb80{animation:none!important;}

/* Visible-only motion keeps old chat history from decoding animations indefinitely. */
.avatar-circle.inferno-avatar66.aura-visible80::after{background-image:var(--aura-frame-motion80,var(--inferno-avatar-frame));animation:avatar-aura80 3.1s ease-in-out infinite;}
.aura-frame80.aura-visible80::before{animation:frame-travel80 2.8s linear infinite;}
#room-view.classic-room .message-meta:has(.inferno-avatar66){height:auto;min-height:46px;align-items:center;padding-block:6px;}
#room-view.classic-room .message-meta .inferno-avatar66{align-self:center;}
#room-view.classic-room .member-card:has(.inferno-avatar66){min-height:56px;height:auto;padding-block:7px;}
#room-view.classic-room .mic-ring .inferno-avatar66{width:34px!important;height:34px!important;min-width:34px!important;}
#room-view.classic-room .mic-seat:has(.inferno-avatar66){gap:8px;}
#room-view.classic-room .member-card[data-role=root] .member-name{font-weight:800;text-shadow:none!important;}
#room-view.classic-room .member-card[data-role=root] .forge-nick60,#room-view.classic-room .message-row[data-sender-role=root] .sender-name{letter-spacing:normal!important;font-weight:800;}

/* Retain chosen rank colors, including room-specific custom colors. */
#room-view.classic-room .message-row[data-sender-role=root] .sender-name> bdi{font-weight:800;}
@media(max-width:760px){#room-view.classic-room .stage-row{width:100%!important;justify-content:start!important;}.aura-mobile-nav80 button{flex:1 1 0;}}

@media(max-width:760px){#room-view.classic-room .room-grid{position:relative;} }

#room-view.classic-room .member-card[data-role=root] .forge-nick60 > bdi,#room-view.classic-room .message-row[data-sender-role=root] .sender-name > bdi{paint-order:stroke fill;-webkit-text-stroke:.3px #4d360f;}

/* Move the name's decorative frame, not the letters. */
.inferno-nameframe66{position:relative;isolation:isolate;background:none!important;filter:none;}
.inferno-nameframe66::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:var(--inferno-name-frame) center/100% 100% no-repeat;}
.inferno-nameframe66.aura-visible80::before{background-image:var(--aura-name-frame-motion80,var(--inferno-name-frame));animation:name-frame80 3.3s ease-in-out infinite;}
@keyframes name-frame80{0%,100%{filter:brightness(1)}50%{filter:brightness(1.18) drop-shadow(0 0 2px #e4ac65aa)}}
html.aura-motion-off80 .inferno-nameframe66::before{animation:none!important;background-image:var(--inferno-name-frame)!important;}
@media(prefers-reduced-motion:reduce){.inferno-nameframe66::before{animation:none!important;background-image:var(--inferno-name-frame)!important;}}
/* Retain the original ornate V61 artwork, without its opaque center fill. */
.aura-frame80.frame-fire{--art80:url('/assets/astral-animated-v61/message_burning_left_static.png');--art-motion80:url('/assets/astral-animated-v61/message_burning_left_animated.webp')}
.aura-frame80.frame-galaxy{--art80:url('/assets/astral-animated-v61/message_astral_left_static.png');--art-motion80:url('/assets/astral-animated-v61/message_astral_left_animated.webp')}
.aura-frame80.frame-diamond{--art80:url('/assets/astral-animated-v61/message_diamond_left_static.png');--art-motion80:url('/assets/astral-animated-v61/message_diamond_left_animated.webp')}
.aura-frame80.frame-gold{--art80:url('/assets/astral-animated-v61/message_royal_left_static.png');--art-motion80:url('/assets/astral-animated-v61/message_royal_left_animated.webp')}
.aura-frame80:is(.frame-fire,.frame-galaxy,.frame-diamond,.frame-gold)::after{content:'';position:absolute;inset:-3px;pointer-events:none;z-index:3;border:7px solid transparent;border-image-source:var(--art80);border-image-slice:40 50 40 50;border-image-width:7px;border-image-repeat:stretch;}
.aura-frame80.aura-visible80::after{border-image-source:var(--art-motion80,var(--art80));}
html.aura-motion-off80 .aura-frame80::after{border-image-source:var(--art80)!important;}
@media(prefers-reduced-motion:reduce){.aura-frame80::after{border-image-source:var(--art80)!important;}}
