/* Shared Terra welcome/lobby atmosphere (TEST and S1/S2).
 * Fully decorative: no overlay receives clicks, pointer gestures or focus.
 * Isolated from the actual in-game map and its renderer.
 */
.terra-ambient-bg{position:fixed;inset:0;overflow:hidden;z-index:0;
  background:radial-gradient(ellipse at 25% 40%,#526e50,#294438 60%,#15261e);
  pointer-events:none;user-select:none;contain:layout paint;isolation:isolate}
.terra-ambient-map{display:block;width:100%;height:100%;
  transform:scale(1.06) translate(0,0);
  transform-origin:center center;animation:terra-ambient-cam 180s ease-in-out infinite alternate;
  opacity:1}
/* No full-screen dimming veil: the territory art stays at full brightness.
 * Text readability is provided by the individual panels below instead. */
@keyframes terra-ambient-cam{
  0%,15%{transform:scale(1.06) translate(0%,0%)}
  48%,65%{transform:scale(1.075) translate(-1.4%,.65%)}
  100%{transform:scale(1.065) translate(.8%,-.5%)}
}
@media(prefers-reduced-motion:reduce){
  .terra-ambient-map{animation:none!important;transform:scale(1.06)!important}
}
@media(max-width:720px){
  .terra-ambient-map{transform:scale(1.18);opacity:1}
}
@media(prefers-reduced-data:reduce){
  .terra-ambient-map{animation:none}
}
/* Guest portal: readably floating cards, not fully opaque slabs. */
.terra-account-shell{position:relative;z-index:1}
.terra-account-card,.terra-account-status{
  background-color:rgba(19,38,35,.89)!important;
  backdrop-filter:blur(5px)}
.terra-account-header{padding:12px 8px;text-shadow:0 2px 12px #081712}
/* Session-authenticated source landing S1/S2. */
.terra-event-entry{position:relative;z-index:1}
.terra-event-entry-hero{
  background:linear-gradient(115deg,rgba(25,59,42,.90),
    rgba(11,33,29,.87))!important;
  backdrop-filter:blur(4px)}
.terra-event-entry-card{
  background:linear-gradient(130deg,rgba(20,50,37,.90),
    rgba(11,31,28,.88))!important;
  backdrop-filter:blur(4px)}
/* Only the lobby sees the demonstration. The actual game remains untouched. */
body:not(.ffa-is-playing) .ffa-lobby{position:relative;z-index:1;
  border:1px solid rgba(126,160,122,.55);border-radius:16px;
  background:rgba(13,36,28,.85);box-shadow:0 14px 45px #0008;
  backdrop-filter:blur(5px)}
body:not(.ffa-is-playing) .ffa-topbar,body:not(.ffa-is-playing) .ffa-footer{
  position:relative;z-index:1;background:rgba(21,45,35,.91)}
body:not(.ffa-is-playing) .ffa-app{position:relative;z-index:1}
body.ffa-is-playing .terra-ambient-bg{display:none!important}
