/* Elemental environments are independent from temporary ultimate-skill realms. */
.battle-overlay .battle-panel:has(>.battle-arena[data-environment]){background-size:cover;background-position:50% 58%;background-repeat:no-repeat}
.living-room[data-environment]{background-size:cover;background-position:50% 60%;background-repeat:no-repeat}
.battle-overlay .battle-panel:has(>.battle-arena[data-environment="fire"]){background-color:#bf8460;background-image:url("assets/arenas/fire-habitat-v1.webp")}
.living-room[data-environment="fire"]{background-image:url("assets/rooms/fire-room-v1.webp")}
.battle-overlay .battle-panel:has(>.battle-arena[data-environment="water"]){background-color:#789f9d;background-image:url("assets/arenas/water-habitat-v1.webp")}
.living-room[data-environment="water"]{background-image:url("assets/rooms/water-room-v1.webp")}
.battle-overlay .battle-panel:has(>.battle-arena[data-environment="grass"]){background-color:#738962;background-image:url("assets/arenas/grass-habitat-v1.webp")}
.living-room[data-environment="grass"]{background-image:url("assets/rooms/grass-room-v1.webp")}
.battle-overlay .battle-panel:has(>.battle-arena[data-environment="earth"]){background-color:#b99977;background-image:url("assets/arenas/earth-habitat-v1.webp")}
.living-room[data-environment="earth"]{background-image:url("assets/rooms/earth-room-v1.webp")}
.battle-overlay .battle-panel:has(>.battle-arena[data-environment="electric"]){background-color:#8f9279;background-image:url("assets/arenas/electric-habitat-v1.webp")}
.living-room[data-environment="electric"]{background-image:url("assets/rooms/electric-room-v1.webp")}
.battle-overlay .battle-panel:has(>.battle-arena[data-environment="ice"]){background-color:#b2c9ce;background-image:url("assets/arenas/ice-habitat-v1.webp")}
.living-room[data-environment="ice"]{background-image:url("assets/rooms/ice-room-v1.webp")}

/* Equal outer columns keep the complete brand on the viewport centerline. */
body>.topbar,body:not(.is-signed-in)>.topbar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:12px;box-sizing:border-box;width:100%;height:88px;margin:0 auto;padding:0 32px;left:0;right:0}
body>.topbar .brand,body:not(.is-signed-in)>.topbar .brand{display:flex;grid-column:2;grid-row:1;justify-self:center;align-items:center;white-space:nowrap}
.topbar .topbar-tools{grid-column:3;grid-row:1;justify-self:end;max-width:100%}
.topbar #account{min-width:0}.topbar #account .pill{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:767px){
 body>.topbar,body:not(.is-signed-in)>.topbar{height:60px;padding:0 14px;gap:8px}
 body.is-signed-in>.topbar{height:auto;min-height:100px;grid-template-rows:56px auto;row-gap:0;padding-bottom:10px}
 body.is-signed-in>.topbar .topbar-tools{grid-column:1/-1;grid-row:2;justify-self:end;max-width:100%}
 .battle-overlay .battle-panel:has(>.battle-arena[data-environment]){background-position:50% 53%}
 .living-room[data-environment]{background-position:50% 60%}
}
@media(min-width:768px) and (max-width:1020px){.topbar #account .pill{display:none}}

/* Neukgu: calm highland wind habitat and an airy room, separate from the storm ultimate. */
.element-wind{background:#e1f0e7;color:#386f63}
.battle-overlay .battle-panel:has(>.battle-arena[data-environment="wind"]),.technique-scene.element-scene-wind{background-color:#b9d3b5;background-image:url("assets/arenas/wind-habitat-v1.webp");background-size:cover;background-position:50% 58%}
.living-room[data-environment="wind"]{background-color:#e9d5b5;background-image:url("assets/rooms/wind-room-v1.webp")}

.element-honey{background:#fff0c8;color:#805019}
.battle-overlay .battle-panel:has(>.battle-arena[data-environment="honey"]),.technique-scene.element-scene-honey{background-color:#b69b6c;background-image:url("assets/arenas/honey-habitat-v1.webp");background-size:cover;background-position:50% 58%}
.living-room[data-environment="honey"]{background-image:url("assets/rooms/honey-room-v1.webp")}

.element-fighting{background:#f4ded2;color:#8d3e28}
.battle-overlay .battle-panel:has(>.battle-arena[data-environment="fighting"]),.technique-scene.element-scene-fighting{background-color:#b69b6c;background-image:url("assets/arenas/fighting-habitat-v1.webp");background-size:cover;background-position:50% 58%}
.living-room[data-environment="fighting"]{background-image:url("assets/rooms/fighting-room-v1.webp")}

.element-wood{background:#e6edce;color:#526c36}
.battle-overlay .battle-panel:has(>.battle-arena[data-environment="wood"]),.technique-scene.element-scene-wood{background-color:#769352;background-image:url("assets/arenas/lulu-wood-habitat-v1.webp");background-size:cover;background-position:50% 58%}
.living-room[data-environment="wood"]{background-image:url("assets/rooms/lulu-wood-room-v1.webp")}

.element-dark{background:#eee7fb;color:#5d4091}
.battle-overlay .battle-panel:has(>.battle-arena[data-environment="dark"]),.technique-scene.element-scene-dark{background-color:#413b68;background-image:url("assets/arenas/bambi-dark-habitat-v1.webp");background-size:cover;background-position:50% 58%}
.living-room[data-environment="dark"]{background-image:url("assets/rooms/bambi-dark-room-v1.webp")}

.element-light{background:#fff1c9;color:#775218}
.battle-overlay .battle-panel:has(>.battle-arena[data-environment="light"]),.technique-scene.element-scene-light{background-color:#ded8bd;background-image:url("assets/effects/lumi-light-realm-v1.webp");background-size:cover;background-position:50% 58%}
.living-room[data-environment="light"]{background-image:url("assets/rooms/lumi-light-room-v1.webp")}
